diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 59f779429f7bb90fcb7580ad5ea9f94f62032020..6e6318687ceada3477aa985a89a83fc34cea370a 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 diff --git a/suite2cases/ltp_Makefile.json b/suite2cases/ltp_Makefile.json new file mode 100644 index 0000000000000000000000000000000000000000..daf12e453e43d2e13b8c5a76137cc5e5dffbcb0f --- /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_can.json b/suite2cases/ltp_can.json index 8e89e6a63cf8d2397bc9cb1d1d92a34db0121adb..376b2899ce0766733226e0c9b8bb3826498bd1cb 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 09c0889ae767a623f0a6aff359b949788bfc6b40..a6134835fbbd926a1cd715db6212790ca2ae49c0 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_capability.json b/suite2cases/ltp_capability.json new file mode 100644 index 0000000000000000000000000000000000000000..6ace62759c5f850f002991629249084ff8e27846 --- /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_commands.json b/suite2cases/ltp_commands.json index ff3a18004eb8757fd6447f232979aa101408b4e6..deb9a3ea8ba0f36c66417ba11a91f98eb726ad8c 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 db1d4d33d53e632b1de04fd2b0621f3b48338703..9b7f8b25692203fc28fc2ef04d22b492ec14e89a 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 30feed40028fc26d61275ebdca0a0e596911b575..b78892d8ca74d35525bdd1f75adbdf69423bed71 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 1eb0d679e3dcc3dd704e83740f62e487a5f341fd..f8fb8c942d74ed20d8ca9386fac1c48370a4ef45 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_crashme.json b/suite2cases/ltp_crashme.json new file mode 100644 index 0000000000000000000000000000000000000000..294cb8352ac79dcf517ea9d86d509f1c599533c1 --- /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_crypto.json b/suite2cases/ltp_crypto.json index b541505f2e2e32ea00a3535f65a618e6c95ba750..899f12a1472ed1d7b35ebd57f54c2c927df550f8 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 bebaf7f469d99e5792b368d914d769e82d43d13b..c5350cf4877782cad8e9a73c8fe30962d4a03261 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/security_test/ltp_cve/ltp_cve", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_dio.json b/suite2cases/ltp_dio.json index 6780596a5fbeb356697a82bd57fcaa4810fe6656..98da2065ae59a4d9bee1764a339ec9f8a045f9e3 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_dma_thread_diotest.json b/suite2cases/ltp_dma_thread_diotest.json new file mode 100644 index 0000000000000000000000000000000000000000..ff3610c3361add808661624fa5b36aa4a474734c --- /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_fcntl-locktests.json b/suite2cases/ltp_fcntl-locktests.json index bc545d2aca521210a1ecb158fadddbf1683b6bed..c89191a8a518c90740e1d735e9149426e363a0f0 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 6fad92e028c04f528428b3915a916bd051a4b52e..d38adfb4ab53ee95dd26a06daece0491b3db62c7 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 637b903995961a00550f9aa066e82bf808c5594b..8638e2e8abcc8d32fce84669ece3d027f8e9981b 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 f1e95f523ddfaa77b45c4fd5a4e5583b2111b717..0e3a3013f319b3bf3fc5530dfb3b93ab156a6a7e 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 87c56d8a0a139c8b95d964c46ba8b1070d069a47..d0c86a9121e16a26c91c485072e4cabcb50f3cb4 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_fs_readonly.json b/suite2cases/ltp_fs_readonly.json new file mode 100644 index 0000000000000000000000000000000000000000..ed98c852aacca236fde84b9b20e225411e84f239 --- /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_hugetlb.json b/suite2cases/ltp_hugetlb.json index a4913d330573937352b04d869f8d02859c7367c5..0936814fae757b95fd8ce964f04059cb70a4acf5 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 22516559e89a76fac75e52a3c29a52e8937814d3..bb9c429fbe61718d73110d7e652ab6bda08cec93 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_ima.json b/suite2cases/ltp_ima.json new file mode 100644 index 0000000000000000000000000000000000000000..bf4bdf5e72e3a558c2b0530e81c6315d894a312b --- /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_input.json b/suite2cases/ltp_input.json index 8268dbe6c88268266be57e03a1621662a5f111f6..1ff18a9af671f2013fce7c7422a665f5ec802408 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 50edf9d24223c873b1a69bece9ffb6dc97a024ff..3ce7837bf389b81af4309f9afb7d01926fbe4234 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 a5416b66f8f8a2ae95d1a0f584bd68699179380f..b14ead3b55eab2a3dcaaf036ece89a143c18e8aa 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 d145cebb0d5a62d65300fe5f24540c0dbad8e607..e1034645ea315ed559a9221d53add4f810a5c5ba 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 aa1758aa2a53bf647496352667806dff6fbe51da..dc4cd0669519ae2cc4b99cdffb2a45a1d1ebcc5a 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": [ @@ -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 0000000000000000000000000000000000000000..dc49642637d8d32ff4ebc05d55cad114a62d9689 --- /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 0000000000000000000000000000000000000000..8ca104d85cdf9756b301df57dc117f8d43b1b68c --- /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 0000000000000000000000000000000000000000..ac134d4db0077a5601046220a7f04f98b74ea189 --- /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 0000000000000000000000000000000000000000..fb7e0625b5dccbf47f3ebd6eefa13113a293d44b --- /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 0000000000000000000000000000000000000000..549f94e8488b6ad98d2a8c11236a3328182b0ede --- /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 0000000000000000000000000000000000000000..6acd367c2488cbfd8a1af045af2040b959aa2799 --- /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_math.json b/suite2cases/ltp_math.json index f92923bc0615b4a49d34ac9136d0ff76fb1f4ac9..b3c8149757e898740d8188ede2ae29a65660faac 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 ed737619d85acc8267a3135ed8a652955eac95ef..fe3987e3e24b2d1737377458b649bf08d0ffda70 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": [ @@ -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 0000000000000000000000000000000000000000..806383f71c8e863069279886c08d71eccff03cf8 --- /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 0000000000000000000000000000000000000000..c9a60441488619fce0531461c32978b21f766ac1 --- /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_ipv6_lib.json b/suite2cases/ltp_net_ipv6_lib.json index eb475a09fb75a4e4da1b938a59d86f08722bc89b..c27bff50d84eae3eb742ec67b36b30290634a499 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_net_multicast.json b/suite2cases/ltp_net_multicast.json new file mode 100644 index 0000000000000000000000000000000000000000..164a68c9bb376e2dd75aa5a63f2a6b020744bf4e --- /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 0000000000000000000000000000000000000000..87668b02fecb2ffa29bb54c12ee7197a1bae52f4 --- /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 0000000000000000000000000000000000000000..8c3fd4023e890b5d4ea92417d81e0e624711edf5 --- /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 0000000000000000000000000000000000000000..ab8b5ab323caa5c5e98d4796c99439092eef94b6 --- /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 0000000000000000000000000000000000000000..3460ab26b3bf40d6fa969290efd5bbabfe687e99 --- /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 0000000000000000000000000000000000000000..3079d8c7cbfbb947726f91307eac1334811fd448 --- /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 0000000000000000000000000000000000000000..6b584141b9c1cf9ef4f5f843ea7ad0c213d4311d --- /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 0000000000000000000000000000000000000000..cfef29a55c74de1159322732e85c7d297f00a881 --- /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 0000000000000000000000000000000000000000..ecd6f571d5797cae92527cd50f42def7ab452682 --- /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 0000000000000000000000000000000000000000..2146a0a31cddfe614af61690e0de07d5a8a4f6e8 --- /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 0000000000000000000000000000000000000000..062c0bbc1336cf5e680f9a974bdbf13c892f15dd --- /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 0000000000000000000000000000000000000000..426363aaf4518558abb234d77ad97413189b7e79 --- /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 0000000000000000000000000000000000000000..6e57b58c9b5a9ed8a408aacc7a3ef3a7445fb776 --- /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 0000000000000000000000000000000000000000..29807358489e4f13963bda1554c521b324c81876 --- /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 0000000000000000000000000000000000000000..d11df5c3dac366b3d15a338c4d9eb3cf96940899 --- /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 0000000000000000000000000000000000000000..df8d60c273457bfdec034346bb25979bce9ad66e --- /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_nptl.json b/suite2cases/ltp_nptl.json index f131a44ea657c717cb59f78ad18c7643dcd4c265..f99f86d97e197f6a4590c5862b5c52ec247466bb 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_numa.json b/suite2cases/ltp_numa.json new file mode 100644 index 0000000000000000000000000000000000000000..a590d8f99d608f4337d886e9a07e9480d7656a1f --- /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_open_posix.json b/suite2cases/ltp_open_posix.json new file mode 100644 index 0000000000000000000000000000000000000000..22738dd502b5c307fdd47458b78e38d2314c88d3 --- /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/suite2cases/ltp_power_management_tests.json b/suite2cases/ltp_power_management_tests.json index a33eb2ef74efc468511d766980efb2be7742deba..b0021b0afe534fc5d65c1a14815a23b51d830d2f 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_power_management_tests_exclusive.json b/suite2cases/ltp_power_management_tests_exclusive.json new file mode 100644 index 0000000000000000000000000000000000000000..4219ee736dbb4dfda8dd112187c5959adabbd296 --- /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_pty.json b/suite2cases/ltp_pty.json index 38114f211e1074778f5822bcd8d453682e79cf5a..fb0fa5a76f1c1155c58f992e15fe831654e17b3c 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_s390x_tests.json b/suite2cases/ltp_s390x_tests.json new file mode 100644 index 0000000000000000000000000000000000000000..6e5141a31f3b357cfde10dadb2b4734c4967c110 --- /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 d7604d9d510333610e4dc018097329418fa51bec..8bd60ab18a5d56ef127431a13c92dbeab8edecc1 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": [ @@ -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 0000000000000000000000000000000000000000..4076d9afc6522fb910b42dc35696f4307080bd83 --- /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 0000000000000000000000000000000000000000..5d74bfc84bb6c3a750209b4f6574586aa106f045 --- /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 0000000000000000000000000000000000000000..0b6e575d8d9a0971dbd9160a87246a99f7c23b2a --- /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 0000000000000000000000000000000000000000..080af6608a627d7735b861e30db14217c5f0cb8a --- /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 0000000000000000000000000000000000000000..edf9a091d2e0565bda5adec90312040805d598a2 --- /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 0f7dd023cb79aa6297a146c9fc6e612849d979c4..61e1b43c7858ad8705bd60eb137a798b36419431 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": [ @@ -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 0000000000000000000000000000000000000000..3676f4a015bed32385b65e684e29f4ba45e9f0dc --- /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 0000000000000000000000000000000000000000..55f85c3c6da4b0b411db8859bc6e6fffc61a85f1 --- /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/suite2cases/ltp_uevent.json b/suite2cases/ltp_uevent.json index e877254404ee709e6c981695605218cf6fa21ded..53612627f2186d8524d405ccef10a0b67fb4c426 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 a8f1f29bd35a044a7cd766b47302aa19eb41c7f8..786201c0c20af1c033547925741476ae2b0bddf2 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": [ diff --git a/suite2cases/nvme-snsd.json b/suite2cases/nvme-snsd.json new file mode 100644 index 0000000000000000000000000000000000000000..75b07f0f1edd4b74e1575cdb3c9caafd55fb1c70 --- /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 13de180ff035c1fc964f958e4a37aa89724eecd8..6c97c6131d77697665ebb7887058349c300e3548 100644 --- a/suite2cases/obs-server.json +++ b/suite2cases/obs-server.json @@ -89,6 +89,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 0000000000000000000000000000000000000000..72ef71b836abba5df17726248c711ada492853c7 --- /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 4d52d0dc025bd55992e96d78ca26fc5dce4f02da..f458e424c1a6742fd1a32896f4bddfdc0189204a 100644 --- a/suite2cases/ostree.json +++ b/suite2cases/ostree.json @@ -21,6 +21,12 @@ }, { "name": "oe_test_ostree_install_and_remove_ostree-help" + }, + { + "name": "oe_test_service_ostree-prepare-root" + }, + { + "name": "oe_test_service_ostree-remount" } ] } \ No newline at end of file diff --git a/suite2cases/patch-tracking.json b/suite2cases/patch-tracking.json new file mode 100644 index 0000000000000000000000000000000000000000..59acb5ddedf01ff7a815df4b46b47f8b388999d6 --- /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 0000000000000000000000000000000000000000..8b2767e2c1e8691bc9f9d2cfb74375aad4d3e3ca --- /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/smoke-basic-os.json b/suite2cases/smoke-basic-os.json index a309181f7eac593dddb8c4b8cd1bc33b10cb0f01..0edab40052d38834ab9987557c4ef5636c8b034b 100755 --- a/suite2cases/smoke-basic-os.json +++ b/suite2cases/smoke-basic-os.json @@ -123,6 +123,9 @@ { "name": "oe_test_lsscsi" }, + { + "name": "oe_test_lvm2" + }, { "name": "oe_test_lzo" }, @@ -273,6 +276,9 @@ { "name": "oe_test_bc_03" }, + { + "name": "oe_test_bc_04" + }, { "name": "oe_test_bridge-utils_01" }, diff --git a/suite2cases/syscare.json b/suite2cases/syscare.json index 599c75e54e66511394627193eb59ee0c980b5f22..68cf66a084a79a34cc5b70afb6405e0010153cf8 100644 --- a/suite2cases/syscare.json +++ b/suite2cases/syscare.json @@ -14,6 +14,12 @@ }, { "name": "oe_test_syscare_build_error_param" + }, + { + "name": "oe_test_service_syscare" + }, + { + "name": "oe_test_service_upatch" } ] } \ No newline at end of file diff --git a/suite2cases/sysmonitor-kmod.json b/suite2cases/sysmonitor-kmod.json new file mode 100644 index 0000000000000000000000000000000000000000..822eaf2c96d6202cc03c07a20637aef7aac92bf7 --- /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 858373475b3176df16e6356d92a964eade52a72b..11e05c3cca696e648e92e0cfbf34fa93b67b8cf9 100644 --- a/suite2cases/targetcli.json +++ b/suite2cases/targetcli.json @@ -14,6 +14,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/suite2cases/zipsplit.json b/suite2cases/zipsplit.json new file mode 100644 index 0000000000000000000000000000000000000000..301a6a494193c12352826281ebd6dc713b884feb --- /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/nvme-snsd/common/snsd.conf b/testcases/cli-test/nvme-snsd/common/snsd.conf new file mode 100755 index 0000000000000000000000000000000000000000..5280001c933c8d882b05dcff0a1cfa971d2b0504 --- /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 0000000000000000000000000000000000000000..cdb55bbd4c19f5e984a562068702343804511355 --- /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 0000000000000000000000000000000000000000..553f594e4c95910431421a7a405edd625a4297bf --- /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 0000000000000000000000000000000000000000..0378be0310f19bbf3d726548349cac6a59cc8e76 --- /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 0000000000000000000000000000000000000000..e55ff24f9b8c2604684d8a77964414521f64e331 --- /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 0000000000000000000000000000000000000000..5f4ab48d36cf50b63c00e3f74a5871d0e76ecb83 --- /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 0000000000000000000000000000000000000000..c5aef6c2cda6d6deaf85eb45811cafb1884097f5 --- /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 0000000000000000000000000000000000000000..114f54568ed6d5a730dddd71e91512145887eece --- /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 0000000000000000000000000000000000000000..66667ad8a5428d1180af1a259cb94a1f2d1830f3 --- /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 0000000000000000000000000000000000000000..fcc575deac978278e32c3d14f31c8772520b331e --- /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 0000000000000000000000000000000000000000..fd9037125efa98245e7ea781bb5e3322eb48c59e --- /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 0000000000000000000000000000000000000000..d9a696c90b5636e1ba3b86229191a38386d6b794 --- /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 0000000000000000000000000000000000000000..e320c6b9a50f5b045d40bb8860df02fac9d48aaa --- /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 "$@" 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 0000000000000000000000000000000000000000..021606652d56506dca589fcdb192488424d81d69 --- /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 "$@" 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 0000000000000000000000000000000000000000..da6aa61bffcaa90c9ee34b76bf5ae8c1f3db531f --- /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 0000000000000000000000000000000000000000..6eee30b6c2b9317df989876e7bc502c0b296a2f3 --- /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/performance-test/network/netperf_network/oe_test_netperf_network.sh b/testcases/performance-test/network/netperf_network/oe_test_netperf_network.sh index 667842b3335119cade97b0e459e52e239b0c30d8..75c5f99a3813132e5edb50eb3e3b8b2648955cb0 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 | 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 -F ' ' '{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 -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 | 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/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 91% 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 index 32b44922da482384382c6f55e96860163c505035..9df54f9e8093c18039a8841a88022202774fb307 100644 --- 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 @@ -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 @@ -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/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 93% 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 index e98feb6255d8c1d66b807ddacdfa41e5204cddd4..036fb5be9b924f9969043ebdb1afdd165d110007 100644 --- 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 @@ -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/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 93% 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 index 9e3e2b37668a8ba918de74e68df60c68a37e193b..705dee886b4eccb816d03d679ef2d51b5b5722c9 100644 --- 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 @@ -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/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 93% 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 index de62c550306f9f89ee022cb520aa0f38c7b67fdf..47cc77ad5cac2c91bf5c67df608b805cd1f2f336 100644 --- 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 @@ -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/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 93% 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 index 8b8781fe925b5f044ae0dfaccc3e2e1fd13a5592..ce8fe0d44d3440d309963e62ce1a76de2cf59039 100644 --- 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 @@ -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/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 93% 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 index eeb5f9ec0d75c48e8a2aed0107615de688cf3c5f..88c157731bfbb8dfa67b5fc39197eb9aecc5ab95 100644 --- 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 @@ -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/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 93% 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 index 599e5d91face64f41ab531527dfe4a7195304904..775f60a947f3087f90b4a65373e866cdd514e6bc 100644 --- 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 @@ -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/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 93% 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 index 81b686826f2ca11d2508b24a43a83e9264a1c071..b754830acaeb1e37d52eb1924f3335af06136858 100644 --- 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 @@ -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/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 93% 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 index e5d43b821b40b9c51e8625cfbaddfaa3a9ec2c1c..083e3d2cc47ea651d8fa7beef8f0767d35aa02ea 100644 --- 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 @@ -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/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 93% 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 index 1ff8bc50a3093ce03e94e68e67ce71f4023fc1ec..05644ffe05ff6a75b3a8bccc8ea2b18054895594 100644 --- 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 @@ -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/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 93% 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 index 18b8bb847f616ad3af0f73e7dd8ea489c895fd86..f29e0b7c1982f543ba7c0c3a9236c89c64b89686 100644 --- 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 @@ -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/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 93% 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 index a2cda6d65ea8b4cff35aef0a889204f6b2ff37d2..7ed6f0413c59f3f59698f4489eea059d0253c286 100644 --- 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 @@ -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/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 93% 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 index 5efcf3e065c55ca91a360587dcbad2095f98bebc..6e7d527e495b4d80677f6e8fe0152630f53b9590 100644 --- 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 @@ -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/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 93% 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 index 4dece0f6c9b47cb672c2ad0b41572b41ae94e1c7..14d4f0c6531150888472eac21caee4855ae5c7fd 100644 --- 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 @@ -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/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 93% 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 index bca2f93fd7e25fe5099d7dafe09a0090aac667f3..2ae8749765c01d156fe1f3e3cc63b347be26a558 100644 --- 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 @@ -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/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 93% 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 index c47a0dbfa0048320c210ae5c3a0f8a66f73d630a..7dbe5e1bcdf7a9cd82136acd08028fafd00e5190 100644 --- 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 @@ -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/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 93% 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 index 63d7aebf06333f94fc150adc19014d49455d9d56..793f769c72b4f5ef5cda80934d73a4f5a0d9d282 100644 --- 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 @@ -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/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 93% 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 index 522cb181a721cc3c9cde56eaaeea781a523c7b39..55ea644da13dd5a7fe973044174f453523ad89c1 100644 --- 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 @@ -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/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 93% 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 index 856c16bc8cf77de6d9ce2017f3652342a7b6d179..7192c650fc1080bde346c504efb5036ae18ed00a 100644 --- 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 @@ -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/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 93% 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 index 950469267d613fd8c62f7384ea2bfa0ce9ad1cee..74816caea857f29cb8803df8f409875ea2f9e762 100644 --- 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 @@ -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/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 93% 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 index 65eeea07ac131028348f99936300edc3b36bc74c..5c03c5aa0471360a9fcab172bd3a235bcf7bd266 100644 --- 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 @@ -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/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 93% 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 index aba8a0fa6bf19266572d38547aec85e41f0b748c..ad56d2bb8e15e3c02682aac470a9d5f5da366398 100644 --- 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 @@ -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/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 93% 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 index 2a03dfa5cd447b35ae0110e96b47deddb0cb3d47..a8a8120d53e9a8e67002d91588842e705af1253f 100644 --- 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 @@ -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/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 93% 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 index 7a5811d478634968fd7242b71fe1d239d8490e3a..363e51f59ca32f817f850d76c06b363a01877fe8 100644 --- 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 @@ -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/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 93% 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 index b13fb86d070eab9c72c4bc18f8ac401b5e8e7205..6b3c9c57188b1c853e1f8bb36c83f7c82f49b8fb 100644 --- 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 @@ -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/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 93% 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 index 25b6009b371a433075ec6232c752585a666554cb..7208ef8469adbb3d228f10ada8099769a4ae4db3 100644 --- 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 @@ -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/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 94% 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 index e290f999cce350665e331f1b5e74def6f4a40c89..a60b53292ea015ce83ac991bf763acb548c2c086 100644 --- 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 @@ -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/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 93% 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 index 827601b17e97396b91b72a2630f1cefa205294f0..89a4f2ed99839d4dcfccbd49cbbe89d7baab368c 100644 --- 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 @@ -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/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 93% 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 index d8745b183bfb7f0e115663317544d12e9b41b05e..1b328616361f34ba38d990a1922e5f2adf8899b4 100644 --- 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 @@ -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/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 94% 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 index 792ea407df53efc779f4566d1a0526bc757a7169..44f24ef8d09557e0b12384a297637c2bbee4cbff 100644 --- 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 @@ -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/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 93% 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 index 4c24e45a75462feab8193859700520f0a0a09139..73d278c2e80294cdfa32caddfe180b8837c37141 100644 --- 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 @@ -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/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 93% 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 index 824ca4be97ef8a28c7cfa9c8d6e11a9a0e733034..8999419a2c972e66e8cc8a2b3906556d76600390 100644 --- 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 @@ -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/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 93% 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 index 5c6b8b23ace50c778104b751113c7b69938f538d..fcfa701e7217ca99f1895c05bcd29f9535be7c2d 100644 --- 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 @@ -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/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 93% 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 index 484664e8c823779b594778669ffdc4441e28442c..d4322e4e23ba09d8131dfeced97ba9d8932f9c3b 100644 --- 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 @@ -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/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 93% 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 index 35afa35ecd1a39e7f14adfe5d82f5cc63513ad65..fef5e942ac8504e85e9277b893985b6b41c04a8b 100644 --- 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 @@ -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/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 93% 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 index 0cf4e5205f36da514a228a2999a6ddf67241caf2..800117a93f553f23e6aec1bda28a3350fe3b2741 100644 --- 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 @@ -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/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 93% 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 index 3823ecd01271cc126f13b4cbb15cd4e847d6e5e6..2bd2ed7d378fa62f1a4bd5eab7c623669044ba26 100644 --- 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 @@ -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/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 93% 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 index 7a57ae277c7f367906155c78d632f62194d035d7..ffd5e81a71d77b9e08dd3a1423ae032d87b22eda 100644 --- 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 @@ -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/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 93% 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 index aff9e78767144de6dd6add7b7d9f1bc9e947bbaf..74736f589e4eabd7f5b53646c3a92e398ed1e484 100644 --- 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 @@ -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/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 93% 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 index 7463806a75d99d89fbf8aee1f81d69c8f8d323ca..a7e300ef2676393c1468d87583774e912e2c4ffe 100644 --- 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 @@ -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/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 93% 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 index b72e93f8b2678c7315df247ca531932beaa87923..276855491dba59661008d62c6ec414720fb7df5b 100644 --- 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 @@ -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/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 93% 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 index 1e41a424c2abc5eaaf60e7399dd6cc5200dc1364..f34ab9b28563d117fa7fe660a094a0422b87c520 100644 --- 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 @@ -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/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 93% 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 index 3c74edec16fccd9e4ab6088529c8a7f42f53380a..799470e4850b651b5af833be25cf6b3bc01c34f5 100644 --- 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 @@ -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/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 93% 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 index c592fdaaded0827b9cc58e836803fe1c6cb2dad1..2ea50e7e7168e6308572f252f47524f4c745db4b 100644 --- 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 @@ -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/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 93% 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 index c64f7046bb2ab9ef51900d165f8d6f8f1f1c4abf..e25c56fd095c0e9da6dc2bcdf7aff8e4f35150e8 100644 --- 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 @@ -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/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 93% 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 index 416aa7dcbde9a634b444179a42617478cf363ab7..844f4aa42f5aa2a3bce96027b72b5d313bf01097 100644 --- 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 @@ -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/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 93% 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 index 3a4fe914d0005d27fcffc0f70d4b0148e66dba75..c13d514d5fa8aaa019fa4f3bd0ac86ed992edcaa 100644 --- 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 @@ -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/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 93% 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 index b9242230bb9785584813ae5e30521abded1ccf75..a3d64bf950f1f2b4cc37b90d65534a3b5eb70e95 100644 --- 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 @@ -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/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 93% 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 index 95c48694d31e052b7227996bd0d4818428d3e42c..96b09d3795dd8a8dd9567327c3e84981bb65df66 100644 --- 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 @@ -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/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 93% 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 index f96ccb361cbeafde58208dee265386e9e65b42bc..672fd881b48eb349eee2b41e48013c84dbe829b1 100644 --- 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 @@ -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/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 93% 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 index ef257f1ffa6c55eb2fad514e6d0129dd2a6cb4ed..7610839fbd3dabcff6866ceefac7803079bc1122 100644 --- 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 @@ -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/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 93% 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 index 31454f7ee6904d36f072e32fe6729df148758010..474ea10609abaf7836259238cc7359c1134ffb6a 100644 --- 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 @@ -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/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 93% 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 index 297c7bbbda34e454da6a69c0d9bbe3596b17bc94..2c2bd02a2a6c970a09dea6c7314b1f093bc0d7ba 100644 --- 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 @@ -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/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 93% 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 index 5e4bc2b9d930298636dc2e02c114183e87e0b345..f9a7d68bc82264106136b92d473a0e025a5a7ae0 100644 --- 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 @@ -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/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 93% 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 index 248597817b0d79bfaabb326b4740862b7766b9b7..519b06f72b9c8f120a43f231538d1600fe24b1f9 100644 --- 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 @@ -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/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 93% 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 index 75350d97ca91dcba32d0db57a745fd8c772eee0f..82e73e1242219d38f6ca482e0e4363316d490cf9 100644 --- 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 @@ -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/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 93% 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 index 795b6c64f303df6d88b51bfaf0029f5001abe45c..2bcd947e235ce9634da48280a9ab71d7ac422ccb 100644 --- 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 @@ -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/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 93% 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 index 7a9567d5f75fd324c5dbc03b5b545ce6499437aa..c52dbb971b889b24fa1765d89fdb1d08245d4dcd 100644 --- 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 @@ -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/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 93% 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 index 02ce9a798873faf48a7ab0821e657b01661b8512..24b317f62e96d720792f5d791db80ba302de1ae2 100644 --- 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 @@ -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/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 93% 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 index 9a1303390212318ad9c868a666291e8ec3ae6b6b..5fd1bf4abce77b904a40c1dc6e67ca658b86c437 100644 --- 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 @@ -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/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 93% 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 index 787fbd960e96321e71cb562c3e599aff8105e1a1..d5fe7c594788ff22402e93e17424d41ed318d820 100644 --- 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 @@ -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/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 93% 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 index a60c71a4e7891f8e020fac29f6d08686ce969f9d..39029260c7c1933ee1fce854125b567699b00f9a 100644 --- 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 @@ -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/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 93% 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 index 53737e30bb2eb7d445ef6655902a704293c9f480..38a6db50c3a15ae5b8c482d7028ae7d3683f232a 100644 --- 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 @@ -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/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 93% 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 index e0fc435567f322291a04e344d0fdec07ee387874..a453ee204ed89caff87fd37240ef59c4a29d85d6 100644 --- 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 @@ -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/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 93% 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 index 9944252f0d84994a39f0e7249f7dd4c57fb47bc4..043bdbca3c30b394cd33239c7c10c86e9876129d 100644 --- 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 @@ -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/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 93% 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 index 2d92266909c8cec0a6871be005529ac932a74622..3b820bf7f71f08ab02a8f11a322f1d3007e5adaf 100644 --- 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 @@ -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/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 93% 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 index e65524d0e657684e5feee229ea325e08f92a1457..9576f02942e285f2c22a0f2918851b27ba1a4aa4 100644 --- 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 @@ -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/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 93% 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 index 19187ddceac39fe0b3c7705ff2b38fe9ee3de7ff..fa4b872968a9f3917ee4c8c5b1b314f15f250299 100644 --- 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 @@ -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/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 93% 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 index c67e98b7d196e12f341e3018c2742173800d38c0..428607eb132479ce3412eadd209a86c247480aa3 100644 --- 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 @@ -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/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 93% 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 index 254da5e4939b4488fb1bafde7d76b4a79e3ace81..b2b8b33f420f1b828f968870180a6195ec2a4f4b 100644 --- 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 @@ -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/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 93% 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 index 55d6416df2c87dabfbe769a42bfa03d95b86b798..482124361fa1ed7b4aa2921d493d40d1281ba2e9 100644 --- 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 @@ -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/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 93% 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 index 6355ba157e42e067e08970dcfe0a4eb23dda55bf..dc96e83b998985b9206a28a6245d79f1e55bd8ed 100644 --- 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 @@ -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/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 93% 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 index 80290d85a17d77c8194da3864b4f00d6fddd7d81..6bfd5064bd2c8b2648adbe1fe7e31d35d614f69e 100644 --- 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 @@ -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/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 93% 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 index b36d06552c0fabc6008de3064f4167bcf824d989..33426ea89d1e8967a54f1f577d04f5b83275d646 100644 --- 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 @@ -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/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 93% 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 index 94c678b385a854391eb6d88c4c65ad13cd420f73..6d81c8f81abaa80a7612a3a3a05fb5f09a41b47c 100644 --- 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 @@ -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/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 93% 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 index 453f83ebe96aaad7b55e8b06dea6db9e0ca691ef..6297f59a9bec56767bf7a67b9edcc0125540425f 100644 --- 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 @@ -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/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 93% 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 index d8887d79b0ea66b70d3fdb324ce376003f0f69d7..c16686a50e251e8acb393305274f97c9514c91d6 100644 --- 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 @@ -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/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 93% 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 index 857b8c1ac77e5ba69c36dbf286fb98e5b9505d24..b6badfd443699017b9d21b58cd594437e2b59222 100644 --- 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 @@ -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/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 93% 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 index afdc8870b801d33379fbe29ef2e7dd6d6a0d6a2c..71bb1ad569cfa3af2a033cc278176312079f9900 100644 --- 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 @@ -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/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 93% 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 index 5bfdfe32c7f1c426f6fbf7affada2dd78118fa44..23608e11ebd7d049b7775f7880a1fcfe1c2db14e 100644 --- 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 @@ -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/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 93% 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 index 9829460d08c3457393edcf30a0d7546a372fa737..6e829b2221d6b1f0d354d1ca05ccecf7a0248f1e 100644 --- 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 @@ -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/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 93% 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 index 973af2b35e429bea6c6da11db77cc883a7550635..d9a1a71aa7079b1f2fe405a8dcd030b50188ef07 100644 --- 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 @@ -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/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 93% 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 index 15ed697972a6402c9f272ae5f7bb68b9a457d507..21656c40c4395a8ed4575335e0250e1af21b8624 100644 --- 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 @@ -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/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 93% 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 index 4b2edf91320b3c016e01db5692768101e7462afb..f4f53f29bfcf682b502ca379c62c5a5a9aade1ed 100644 --- 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 @@ -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/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 93% 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 index c869af5d046c3b48d3a463b8f3cc0601aaf93773..663125979235cb3ab41e8b55bb44e6b9876d027b 100644 --- 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 @@ -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/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 93% 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 index 67a5db7e801b3bf8a1e1a85b6fb52553b2c318fc..1852accdf16d21e83e8eb0ba4181f8ecb42de5ab 100644 --- 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 @@ -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/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 93% 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 index a7023a7492e11702d586c91a5be54010e749ec7f..fe98a4e9e5e52fb77bdd6e236d687bbfa7f2749e 100644 --- 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 @@ -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/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 93% 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 index 46a94c3b57e804f3053226156c1e4c03236b25d6..0b285d64543aebe4b52e6198ea8e9628548c51ff 100644 --- 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 @@ -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/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 93% 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 index f8bbe203ad3b99342de229a71b4f9e2846355f35..316231ff8b67e40f644948b3460228ca1031ac48 100644 --- 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 @@ -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/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 93% 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 index e48a3691de95a97a69987844e9e696cfb17cc795..852c20a82b254fc7260e37e1b06e509b9dcd1148 100644 --- 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 @@ -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/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 93% 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 index a5b01fdf090fbd9bed93a2504de8771d4cf3f623..3a9e882a3cbc9b06100ef5ec66aacd058d51da73 100644 --- 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 @@ -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/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 0000000000000000000000000000000000000000..4128c3f5d3804d17f053f0b34333fe300a6626d1 --- /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 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 0000000000000000000000000000000000000000..0c0b885f3166a772e958483552a1e877b020a650 --- /dev/null +++ b/testcases/smoke-test/smoke-basic-os/oe_test_lvm2/oe_test_lvm2.sh @@ -0,0 +1,110 @@ +#!/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 + 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 $? 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 $? 0 0 "Failed to extend lv1" + 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 + + losetup -d /dev/loop0 + losetup -d /dev/loop1 + rm -f /tmp/ramdisk + rm -f /tmp/ramdisk1 + LOG_INFO "Finish environment cleanup." +} + +main "$@" + 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 0000000000000000000000000000000000000000..0ca9b5f3dfb37f8e4c73c9c7c557eec155641c4f --- /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 0000000000000000000000000000000000000000..89c0605f1e85456c04879806c5f28a53236ff1e3 --- /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 0000000000000000000000000000000000000000..12ce2601e366e515be624773e7bfa6fcf7cb5e75 --- /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 0000000000000000000000000000000000000000..b42b97d2291c520a02fe4a56317d5c812e288a85 --- /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 0000000000000000000000000000000000000000..590f40b7bc8861a50040e66c3b21e82ff1ba2339 --- /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 0000000000000000000000000000000000000000..de1b3b8c56bd3d5f66dfbf4822182cbcd4b81d8a --- /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 0000000000000000000000000000000000000000..6a550efbfddd0738bfa54716e1f3caf61064a606 --- /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 92c6948c48888a398d5e6a7550e5f7afaa691590..50aa06a62a395e65613a06ba35538b4b0341df42 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 7bf4b46b9069dd4e8633f6e0133f288d291d1082..819b3af034da87a874d81e6c3b07f08f56471f83 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 e7869cf23cd2924f4171382acb354114fea4bf5c..bf9ca614d9ad3ae34c729998bac84e7fe1fd9a7b 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 de5eda4f690e40952ede1b1b44a705771e9c0bb5..7792cc48ae1cce16e8f80cfdf12201edf3673880 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 0000000000000000000000000000000000000000..899e5dbca8e97ba1668a68aad95d88cd1f745d05 --- /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 0000000000000000000000000000000000000000..be0f29a75f41f4b32e726443d2b2cf0befd386f1 --- /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 0000000000000000000000000000000000000000..d583a00adba374256069be02df517e59fed8a097 --- /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 0000000000000000000000000000000000000000..91f01c15f94e8e89ea9a4e9d7610791b7688a1cc --- /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 0000000000000000000000000000000000000000..1c7348232e1a7f1690ec49f98e03236098efbcb6 --- /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 9d774cf211e3bb8e610c10fd2e69e517d4b6f0d4..1d8715b49ab88e039dfd2b4925a8944c3798c047 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 996fd21e0936c94f892c29c40d68658c5103cf84..4e674c1e9c2468ae1dd11015999116d230fa5fb9 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 595bacf992e0129fe2e90234b43b02287a797576..4848bd24cca3dee0c93e55604464792d8a56d0a9 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 26ab0059be3c8ee12ec664d9517e2233713667de..3c090006c2a44ede5ab60829b0b462b474757c88 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 3a1e2312fe25728166b20e88376ffc7c6f25dd85..75a6fc31e03d3aee7f2168e809e43447ed47d861 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 5967a915e92f201fcf94f67ec2fee16451e8d647..298c192342b4ef805692aa4c60d85a1219661b93 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 a828b1756ed7d04355e09ec4a80cec834351b41f..b1fb49034e885c89097282969de2a5329164d569 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 0f722c65b818159961416dce66323209f9d14b02..f71edfb530fd9104db5b66a8403ed5c679f309ef 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 3ce5665f344b8359f4b57fe8a3a3e5c396c1ec56..98c0232bf9d7f7dfd2689ffcdb28941256a36da3 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 292bc28a6a26e5e592f4f2f1792b9169085943de..f2580f4c5d7f7f162b6c464e5606372524ff7041 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 c854deb0f352daa718234d8c9d80f0ea7d800b59..2e0d5145f066bfd45edb144187be15ac659bb50a 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 79d741e4ca790f37f6e81acd1157d0097fe0ef67..6d80ca62309b72e499503cb70ebfe484192eb4ba 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 7183a0b50d024790827d4969db3665b1ab9a2a66..3cac83015b410103c848cca52954bd18c58094fa 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 775ed53b8e7a4119c97bda4965c3fc7d37cbdeaf..7237c9058b619bc785e881ffbd85a36f9a1d4d03 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 236ae12b7991ddd041d98446dfc1e29052b0cb49..716e5c350008183dc4991efce48647b8b3e4ff45 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 85f162e62b093a534b337886a3867fdac5a4af79..359629f1865d1593f8c29b795c481afef6e2d52e 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 3f62dafea3c5ee0963d403a190dd32cc98163d0f..c8ec0eeaea9c4a4d80251adcb3c6a8a1ffbe8245 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 0609e6e64ac0c28215dcb48f310442d997f6a5fe..76f9e4bc8f142fa2c1c723e83af638d5b1252f29 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 3b5e0dd6136c2d28dca9cad047aca93250269ac8..2aff7f87268e296c6be18cbd6629f71fa660631f 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 8b187eef7e3d52765188d8a05af3deabb39106ce..24c77962f5ec49ea58a30de217384e72bf03f4f6 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 8ce90e09af2bba4019e50c26c1c67e89f3662398..e68ae8eb466c69dae108a53172d7bd0518976a21 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 f3a6ed37379f5a8437a082466cca12ead9fc3066..48fc5961019ae43b0de21c0d8c8be89fd7eed42b 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 fde6e647df57013da62cee5f554d040f1dc86fe4..5a945b19db3c7897eaac1134b8854a7ee75906db 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 f3b7b08c8b0867e11d691793980fbdf53e2933a8..abe0f64ad7d0a8f0d1469e49b716da2036195a5e 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 2c56f81f815c70023929be2165f0dcb0b40edf11..a9d11161355b5ad9e9f704eceda3c2449d988da9 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 301141795d980193f262133b6124e4565e1c1af9..41a3139aff2283d81fe0939f71b58b7b74269bf4 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 7c4afbf040396c84865d32cd492330050d9e9d4a..dc1bb46cf5b5fbf5137b16973e952f559a78c9f4 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 5aa9f09550eeeca1541665e18a75ca5bf308c8e2..64b4340c2603f4f346e73908c63b3b953848f37b 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 55b49f01955f7ae2c99cc868fbc467f2c7d25924..d777f67294f3215f4ebf5b997fd6741efecab0e8 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 942dde3edd85d80a0e66e9634a883101a00af87e..6eab7fd607d4fa9b701962002c3d0f0b42eda1a1 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 6d20b024a0a9ad11b47a28e43cbc1481d664871b..8cd650ab0ad6cf0839fab67976a574da2693bc36 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 d5f700e24a498807cf4d7d7fdb9fd428f3972df3..094c6ccd7fce6134eeb898dcdac0bb395b815859 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 34e4c7d1f6f49ac6c235f689a390341c0b3e4230..16fd594b591a3e1d5ea5d0d4af0aae818365fd75 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 8f3b7bfc735470dc8412d924bbfb7030508556f2..b9d643a27e84c6023477b4ab29e672d322d111a5 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 556409913423eb4fea15c49113aa759a94f72ad9..401654319b98d6c09eec44ce083ed1e49a03cc6e 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 7406bd11317f64a63d905663b748be75311c8779..0f32c1f2635088ffaa641a48b43c428a304bda8e 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 dfa262f361012f8ea5610caa476d4754c2adbb89..5164503238bbd58517808653ed4b7a3f5d2d2173 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 cbe92e2278cc86e2c4c9699c20a8faa67da092a6..495daecf9b4adf101921d5f430bb600c5bbb6421 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 c50228a39aac3f344e7cf9ce257f90566e830dc8..aca74b64d53e33328b9729b12aba0bfb1db9deb0 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 a9e47474fe2307e754218d577b517c7d473e9892..3d27c5957f3b35f6758a88b1d89687f6352685bd 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 21f3ec2cef596ce3659708a140a7d61db85f2ed6..7b1e0fe59d2686d8d7189332626ffdb9e8dfc7e4 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 e492f810fed4bc766a493e00e0c0978c2c1547d3..c63b267fe13c4645faf5ead19c65a8e1d89ae4b1 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 002242b18255e7977e38f8509778bb0b214f533d..3334d94405540f8903c1f1fe0f99b6667b03cada 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 1d6a21b7f4dff091938d5d84674136d539c40098..c1c3a7d0085883d37e59cc370eaff5f8d22f9461 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 856e7153af966ebc972b60c09399644d7acf345a..71a086446e6a4553c133bf9e88945331394a117f 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 ff70c39f7191ffb8bcd7c449827fce188eb68f1a..f982f42e87d63ead0ed14c798027baa4fd850755 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 ded085e5aa52fca5fc0eefd523e4fb40bef75dd7..20ac5cb6106234d8df39862827fecf8c83a27817 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 fcbf2b6aa253229466ae84bca8e673d28683de89..e1f31b14a7da11f85fdfbd5912ad6811a4a2b63b 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 ef3f8963c939405fb2166a0389602d69670b31c8..3d246b7b702b6697efb3dd3450c2ca574b60f135 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 aa0d61db2daf280b2a10984d03949783af5b5b55..bb6ccd93626392ab4dc244276034ff5239f30841 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 c4c0540ce4699bbf06099ee539c644dead38e363..9b3a9b51115158d204b3cd66968f6e47e7a06da3 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 de94c830f9e3aed101bacb36ee49c419b8f2cf6b..c0b176a1eee33804d676c2a92f5deabc6c56e48c 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 52b7902acb6cdbc22a3b1a1fc5e999dd00218cd9..a68bc20e49ebd24625a670a580ba1143b795e05b 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 a20b5fdda28497d7ae667fa67e5845719c0c5941..82a7a5c7ee56cd85d58544a075a6dbd6ed893d42 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 7cd0188d1406b702ba0e972fe21a9ace23648eb4..43eba79a105858afa4fbbbb2b1b8eb24f6c2e7d0 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 873fbdad6ad9b25b962c70f213564f784f820206..d6bb1bb7aae3119506775eb34c53fa81254cb006 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 8c6c21d1bed88cd2488d543bd3cefb55e731139c..227d83e33a337c3c35edce15a347ba0ce6dedde1 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 b5b7c9d5675aa02b8abbe25f279e23940ccba163..a34b27fb0f2ba2a7cf5796be442ffd4ced05b3f1 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 003e73c24faa56cd92ff805cd03503b329ca216f..8c11bc4140d27654b2cf454c1c3db1dbbb2f6450 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 026191b0d5d4e989fcb590d57c7bc9f73a8471e1..427124f8b3c535cc483ab3230cdd49b7d1062b02 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 551829527243b6bcb2670e99e7e82142a061485a..2b3a60746e82d16fa91f557ae1c750d3450c423b 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 11d470e30fbbb1d4ea705284ab7670151d4b007a..e9a6b50af3f2d183b2d82f47a12e72c9bee45797 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 096e4e9fac5bdc2b5ae0cdd4ee2dcf59e890b504..bae716868dfb0527f73f04b86a8bb8bd6d51fd99 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 22f42a5ae871e8fe3db1ae11f86f861feddc0c2a..a9b2c15784f09c9caa06f88b181461d0ecc8d14d 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 791c7ffd071c2fd048fdc12123dea54a1809340c..a1c4c540f56ea038c9df93b43cf14448dc758e48 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 2ff89f60cfd90143af0e40c2ac51f58ee3583232..3a19279cfcfabba26717c2f54d4578812fcc1908 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 52b625c4553f19e93866e477321c280cc5f770cd..579a06727debb62ecd73ebc5bbb8e8b9879d87fb 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 e869ace55b92df783eaefd58d633e70017cda238..bd22abd781d496b70cc2b4240902a5a341d5e96e 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 9f3dec16afe34d0dec7240b4fc7d3fe1cf3149ae..e8e0de01b208989fb531dd9ac89b21c5f1e32405 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 d4ac04e8a3be1269bff1910aa48df87e5ab54f00..648890d802b8403a6664095a48a58a08c72fd7d7 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 3a39480eb5539747ae694b978b3bc195f26f248c..a18d6c7ecb31f2f0f8629a3ceb1ee6f41b3f052a 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 2a79ebb9cb355140ec8ac41643d64efba078ca03..5c55130bb80f8d4a3c1239da90d2d2f362f615d1 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 824102efdb0084644df3388eee38da4704a4e5e7..bd4a380c2433d9b6d0075257c29255ce8bea9370 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 0cf865fe87779f38743773f707cd83257552baec..c075faa683a8890e17bd4ddc137213d1402f3501 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 99dae082769aa7c1412fbb98c2f5969ef84152ac..8b2fadcbb5fd7c17f406b941b5206916797f01dc 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 822f05bd9c4dccc16994a84e13d7ebdab538bc43..7a03fc8c3818ee2cd13bb902cb3a1933cf034c66 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 c08f9882fdb4ae3b54499891f2498e31c4a4f116..cabb708ff2a91d3e037eed86d3ddf3bef0d47536 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 86117d96302b11f3ee4c22e718910bc23238fa5b..ed3da8d7d3a200c3ffecf999298186b1a3bbcb8e 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 fa1410e19594fd693eba544b7a9f5a21535934b4..435bcd1f12641ed51d5e83719bda1f6a60a79123 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 cd746a6014f319d19c7a32380f0fe6f097e7c3e5..bdec7892b01530b21edede127e56b9ce7b6a7399 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 e632e8f6cf56689475a93c770ebaaafe3f8de809..c877441ec431a2f313aa01533f05f2ddb31fc074 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 600f8bed5736a2a18f56acdedc9719932d44d7a0..570a778eafe31b6fca3bfaca7d59af7f740b5570 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 1fa7dd4794efbe3ed748f0c1a8e4f4ac51b1e6ae..a63fbaa84e4bf2fd66c29253fda4fc83ded342d6 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 6f26e5e51fc024467a93381f77cbba5c223edcae..3d9f1fd35dce52f1adb4eb2a6d4f4e26c88f01f1 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 8656a4a42f3db5b526911968a30d72c2f4da9b71..d0b79f46d7c2613d5b503b6ff42390cc429e88fb 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 7a25b1969a5f8bf9dd85b154c54513dbbb24cbf0..264540fd5dcbd8a61b39dfe3594c9c8fe4c3e4d0 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 068d031d11ba0ff41fbec2b0c673cde6b27c9d22..fc60e0669c09f28ac4755ca2a39b10e554e69e93 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 171e8bbe6df88fd9e34e99625b324df2d52064b6..b873ad7394a569474a3b982168b906c30b527153 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 7eb5b5e18b42d0713d9e114c4899f5b8691bde92..95275db1750392e7d6570c5b94622129b4368dc1 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 63a90eaa645577ec7b3c13873aa7359e16f69ccf..a0564b4ed8ffc7e028a331d7d7b2eaf6f8d90ef1 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 6d2712cce0a50be0c31bd6657754fbb0240aafe2..11ea20786f5dc78eb793efe4b63742613061ca4f 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 8104065b79f794686c3fe89b22c63e82f902a38c..d5c61740f30c9a03ac7f85fb42403b15b9775676 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 35f1fc1a63146762a6d47f0beaa48573bcdcf5a7..de07e594048f811093b84b2775626bb69894dcb3 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 13c42b5799225c7be0aacf5cdb4bee1059706e27..15b9014ea4a0130804bb1840e4b45cc6e3f2e4ab 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 0a3cc71779bd9f63e78769d03e6004804d8e9634..0febaa69fa3ef5f775cf553ad72dc4c0307a6745 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 8d55bb500ec57f6b5ecebcac95c3c43bc0f900e9..ff958991a038d0103bdeefed0c3bc30f3673cf32 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 b7f2d98a5e2b44fc4570ab5499b51e97e3fdf4b0..a87183c41f9b5b358fe9312dcd89574bd4bf5065 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 1fb1fe70bc6f7bb99711fc8130ab500117191f46..4f0be841ffba46a3a14912e8d8969600c8e2b373 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 bb3a66f428429863f0694296895f749fa9fcad41..0a09febf6138444f056234e7a979f5886cea6c8b 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 bef7b0a4b1f820636d2c37b3cf170aed49518124..021062b3f99b72807b71695de03c31fcae49fe78 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 44c958e6114769d5211684bee6e43d1bfed2bd2f..b1caab98a8dfbf19426efce15c949b0b1e04ee75 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 c9a4e97bddaa81725a2134b06a169402fec4c240..12269aab832e0e53ddd363b35f221b6370b39d3e 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 f5ddc014f851ce8c6f9a22f6c0b903fc143840f0..acf2a570d37d25c03cc39096ddfe9287bb5e1b97 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 befe8e85a3da57278c79a8b75f6ebc1353183f16..877ce1b336e45b9dc2c789e609f02ada1287e1aa 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 920a624930182fbe7b1d4c1344a5bbd3e74ba8ae..372a8828a9359a9e70077ceed1a34f6140f9f04e 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 135654d79fc84f3d59909fdae29558b53d0cc1f4..525271f8569149c86440a798548848c7e3226eb4 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 4be65f9b859a2e6ee25a01fce0a404619715863b..08958cdb5cf2fc10c91364cdd3f3a47564186e43 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 f7b6d6f74b7301e4d7da07fd4600cd6432cc6fa2..cd0082399cd273cb1964bf6e17c811543bae42fa 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 efba6e1fb805457aa6e81795c140414edcd61715..f0b3829c2de699f959cf19d4ec6b18c4f6cb737b 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 d2df215b137b38e7b6560ee4a8de2cc202710924..f10fd2c3738f6571b0e5a8b3d2a0e06479374d3f 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 0970083c85f8135125ce0f074240fcca7fa4002a..8410c7d15cba6ddbb91a2c0bc49e4604123eab1b 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 64eb69a11298d49b11e3472065bd9c58a0be8b03..1e74d7f87385981b005da07eea024dd4022c6432 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 47873f9069fbe85039f25d1bfec5c35818ffca8b..b52b0ffe6d84b2de3883bdfc8df9b402abac5d9c 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 5f250ba28f36906c9d2da027f53cbc8a5b45c623..75b5a612da5e1f7a59b71bfc4a2d060b61f10c48 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 b6936d2d618afa9e7a9961f2d9fe4df4df20ffb7..5993ebb5ee2b17fce6e5c39e7b96132fed1b550c 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 4f599f063f6706c9b30955d19b68a2db026b28ad..b9c29f02ce681167a56a584f191ed6effee6fd88 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 e060dc55f9fb6eac63e2a7a48486a7eff94bf0b4..9dbf5edc5b30b461dfa755c27496517111eaa02f 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 975b2bd7a9cce4df7020c53112a12a5d33360099..978f41946c695af4606b4e8b82a7ca9629882897 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 95ec58742deaa4541f36bae1a867b680f0debb92..c61405e0258d26a049315ba1f146718b86dd7619 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 fd7166dc5fd831e8ef36d4cea7b2b354dc9bf433..3ee45fc35abfafa152e901be71767bd18a923eb9 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 0c907eb310d4d9f11f2fc032880af7871bdfe046..79781c7cbcaee66252398c12dfc3d2a47d94fa6d 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 582d5508f5de94360d14e9727ebf756cfdff5e66..54a914e5a5464a79fc78aec847a23dbf3fa392d4 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 0d25ccfb655a6d21e344203165b3e59c1865c4f5..a03525b656fd7996e8f91d5b06b2ec4c5ba37209 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 62ee64d4402740f4c63b695804674ec9e3ad15d7..83a50960b14e32daa41f29fe1e88562e050b2548 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 31d24c2c07d910a3be5315d04063bacb29efb326..a67dbf725cf5559a75b650775779d1780cee5750 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 b8f36a3f85beaa7ab3d23731d0c1a6e11cd5e088..f3c2c6d14897836602b9cc702ffa3179773dac6e 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 cb112bed0c20c5059b838868ac24f82c57456567..9a9100fe00b2b806ad4f01ea49bae8092cc16adf 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 9918a04a5bfe340439de8f9c64c85fa22eff1851..339e509c53aa39f9629df2aa5567e3ebe9ddbd69 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 ddc384bf2770f3f6168f7c0e305fc7ceec8ac1b5..c47e25f9902979301a269deb81b1eff770ef35c1 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 a5f5cae688a6e7b1ef805c72171d35798be1d085..676ccb7742dd5d58ac820afcc5efc00284499122 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 607d4498225ab0dfe1da579084391a8d5f23a907..43522efdc874af01151fb151b8c49f760216db73 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 83126ba2340c3a8f364d612be239faf0dce05615..f2431996e719a91031e7f97ec87dccebacc9da95 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 cc4dac5c869f1c7442dbad82ae6e8be0ef5cfa4f..6fd002864c982888fa9eec75a19ffe2f5eb89b12 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 caf0cd96df378b2366172b0afa5176b2059d8164..88f50e38d7ae5ac4296221b148881bf33ddb3cdd 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 6bd9c79f304dfdbaedd25969f2682f029141041b..cee48a413b9064084810913c8bf62a59aa0bb230 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 1ed864bb57541271b41226217656dc24bbfb9a6f..b026a309494a66c8458e7edb1ed4070a4bd32a97 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 f07e9566052c87dc44c7f6daa1b7f459655a2ef7..5d1a82551d2e9113e0f28cc4781aec4e701db657 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 6587f4be1a7a1520f8e6e3e4349a3160a3201a59..29730cf6cb14effc78fcec2c9fcae344f9205a3d 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 05c49c1796b3b0c0806581a0a4b20f43cd86e9d1..4bc272ad7a09a576f26b8dcb6acb2227d9c0c26c 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 62b724a9f9e1c88432a0abd186b06a76dd6df0db..c313cd034dcf0c7f41ada79c05259d706e08dc80 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 d5025d09cb1b0e3172dbca21aac0913c34ae9890..071277bf272c48455e528def12af0ab3dad5d45a 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 42f42b10de4b7ef17b4a7500df5120a9f5f15296..2745f8675e3f4e081519c6c13bb5cc972411428e 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 5d00709a0ac2ad46a0a49925d49b1a12c797fc06..bc365d0691e1cc416d85d58be9ff6c3b9418aaef 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 9eccb10b273d4b59285f720fed6d0ee90304ce32..43798b51689c226f4dde81f13cae2f5812197e48 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 0ff9f80cefcdae9ca97178efd19296fd54fafd1b..1621093c45e89343001194aacd74e1ee7709bc26 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 cec7d489ed4ebae4da33cf164619ea16e7a3cbe4..295670a9cbac8b4eaac0b30092e1059d4439d8c4 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 16df732a1af6bb0bad0d95138823259bd2113ec0..78bf203a862648f11f4c921912720ae976e4ac07 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 e046fc0288585712d4948dbd94f12e25452630bf..cb4ea5888947672ef946ae208d06a1ca6bbfb8d4 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 b2f712cdbb7d8b442197caee914f07f42e6ca6ad..fbba07d762242c27681e9bf00f846c1a21b94e39 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 a262d9d6b0f359a700ee2a45c7c6a7b344332d28..c57efa5603c7a21fc2d9b0b2ec546f4925ab958c 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 7a5a1dabc2b3280652b411fdc6790fb598e79a27..2e54ccffc9bc0d25706d99f7346f56cb6648cf9d 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 88ac72d1d5dcd714af2e6e9d557eae4ee34d795b..14fb520884c40d74c1a039025832ab3de07feb59 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 bebce163bb4232efea5ca0bbcb766d4150545b51..4e5b6679f187881465d38e9dfa5c8f940fe601b7 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 dda9319a1f31ca4abe49f00eb58999e9aeebb6af..170f19891a6c6b029a8007086551573f7883acb2 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 c37e05c24bf5451cdc57aa6116b054e101a94690..ec21c81646b6304e6cb71ff5d3218a53fae11e06 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 110b0d18b35d3c3409349cfde4a723661e7bc2a8..b64d1113be1fea3eb8a7d6b11d839b7346c9d07a 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 05f5c14d4473e8fbc16141090a30a1e4c3b81218..53110361226c75391b998094ecdb4ed93f5eaeb1 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 d5f3fba87381f4eb2482a7727c3cb30b35b0a999..cf08cfc4973affc47bcb75f641aba16bcd72061e 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 2fcbb1808a5eb8757d6545c18b35a7d6ca64147c..94e25b1a7cf515ef97956ef4fd71d9a6d30391bb 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 08dc7558b0b81f2fcf6506fe2297a8c4e8095573..263978fc84c1788f46b3d1a75c41c25c620ce031 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 a6930accfdff1df9eebb6f92f89fc560855dc600..25b122a01a145f585f2041107620a3d901c30436 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 dc72b8fb0517c7611877fcfbbfad894abc90f48c..748bc5b25753270651c07b2c42ffc12399ea5b0d 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 b5eed7899f499595f3e0634722e269ae186bb632..996ef919732a4af4089dd4024ff9034023399f89 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 393cf4115b21e0998ae5a972cce606c9c1c81f7c..4746d603c32dd9c64441a9887c25b76119a5af4d 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 423941a31426a0746bf79557412b29f896cf1b20..40090ac51c52630607bea9f075f943376748f646 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 68fef1e304dddad38a94c8dfdee9774eb5417cc7..2a4095b31799b161e40fe381110754142aad1137 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 e4e0dbfe404b67f9a8e580f971a9030273171720..274d669e23c3feeb018b39a245861cc4be7976e0 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 4c35ee7754f61abf15a95babe1efc0a569e8a108..1ec4d7721ec4e5772a76daf3c59fa06c8b307754 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 5a0aff4f6aedb9096f9490ada4405e33b6cb27a8..42654e13040465b739d9f1e44033fe983ad754c6 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 cb756ec779286b0924eae312d0ad848082e78bc8..b810782d31b40fff2aa99b41f3981d4227aaf4a6 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 857be536219e116fd53d5911315f0be39699eef1..0d21e049d5b10602141c5af707c2bd2f4f767028 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 f0bbe2356c9e490222f996b3639f90774c76f03a..06e68f5a7502d6e365b27c07576131a81fd6c303 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 a1a98b993172bdcd3939aac5d17654699ec8239a..ddcb7ed45a210915fb4f32a9e442e1df9b5713a3 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 ddd6994346aeb3a8d0c04c1bf018a5389d162745..63cfd0fe8721bb317907f9978afc25f839e42dc6 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 4e241e6f693a0b566b8043170d07480f422e609b..ca76af0717666ef8e184e7f386a5ac3c08c43961 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 51d7390a11eba17601ddc8aa73516a94153cde97..b400cae896561d7110fe01990318abcdb87073ce 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 c4db36fc2099d8269c7d9b79e0538f454ab79b30..d3567b527a2374551d8583b680427cd4cb6ca05d 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 e8c063b01798d0d9f26b187dfc186ecc43713d83..ef48b7016445f37c4558f0245a62e89dbf446e32 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 cdc5b3ed5690494a0212942a82dcb522a4814152..e9aeb4c0817fc2b17e38d7ad68d132df051bcddb 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 72297dca3796e6203f1b83cc296034092b2e40fa..6aec38ac5c2c9b86c68a4c2121affb4f176d4110 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 cb3375c4c446992c2ffa837338075176b41efe4b..d69127b0edc8f10744be5bebddea59565fec6d64 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 dfc8e9ac1efe208a12589f5a3b03ab45f78ea75a..1ccd7d030fef755a18614daa9d3839053809af7c 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 ed60c6c534b7be77ba493ca335c9ee2bdbe8a5df..51a71940466e00711f3e94ef11938f2f4b1c7c9a 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 a158ed3e2a2c96f92a860a0b9d83193e24d263f9..4b7bf23ab5ab12c0efbb18c648f4fef9075f9636 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 f3fe1f8579209ac87c19485c69c876bdc46a543f..120954bd7ff7abbd5bbfce47dfe09de4e3850592 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 b0f8be1a379de704fb5e50dfc970156b510b194a..ea9732db244a532d99685286c9b9146205014f04 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 6eba64976fab95edd24380660ae7fff7933db855..afefe7bcd412513255c53ef6b4231495867c39b5 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 0f3dba79de7f75d5c5773fa9355017df2b996570..cbb47e9b142bff78e9b927776cbb711cf1f7ba83 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 9d10f8a616b0e9104bce771731bcd8d3101c5a5b..5428b953326005d5d15de5811706cf6aba51408a 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 dc9de8c06558da92543fa3c9301786b547c10898..5fc02f906b5c273db0b2b6dbb43ff26ababd2db5 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 8208eb9b40fd6e021b8c6c8643f58dc90f26512c..3f63961bb91bd1bf2335137cb4e3050e760008cd 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 d9f109f4397d86172f4cbce691da9b9b01685fc8..d4fc62c19ee653183a9224f4534ee31f4b8ba30c 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 824d1cb49507d23f4780eec97dde7dbe174a227c..7782feed86a567ba2d70f632c7f0cc6d145ff0ae 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 067629038a7be3b7ffcced0f7a790405b54395db..08c372cb10dbf2e0a1396e69b5e01ff42898904f 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 bc015db79bfcef8c91260da4c907a708d3538bf0..da780fe08399e7b55747adcd5df6867e31f90959 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 9dafca62be35674925ad35d9ba5c3082a73dfcce..ee520e81a216d398aec333678461edd12a59ab28 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 2a364ef230a4c424fe38fe5d921a32cc208624a3..f7a08bb453e0fa3fee2a754974fe88ad4e368c26 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 b62ee134317d102993e77803ac0cbb16f1356fba..fe5cd33fd3298cd2cb21b85ef436092a15b39747 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 fe9266f489a59b32a32a181fce35bc2b08565c80..b775d52c2625b7ec28325c0fffb9b74e4b3de76a 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 cce1dafb8df9de97f714b685916691155deefa70..539f14677f60d236c60f456c8ad436b7394bd328 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 c1f948b79c45a7a1e60296d2b983d8854f841f97..25c4b017c40f7f7422fcf3c654d4a9e8caece019 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 c8b04fffaa81a89283880518edf84ec2f3de972c..3c38306271a12b60e5c653e6ac89ffa2b1860fa1 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 cd2487e7d895876f7a0df778ef29a581dcc06086..75f9aa72497f3be8c201f2060d8558a2e8342a66 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 d7f59a4a13c894d32a7031d2d586b27dd8672897..5dc24152e7cb5b26542c09d22f47b0edb610563a 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 65e01262e02d3978ae591cd6624f8bd76dc8711a..1cc102b2ed2effc3f3174663d28f934b0c391b7d 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 948eeb2ff8d5833bd922cc08e65b854351252b40..1d05a6ea1bd4d2c5b1a0f9c68ee2b1a5b68ad491 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 b5e477cd6b7c1355a8754501a42184860dc61534..d476bd33e253b8a8d35573796f044aaf20feaf4b 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 2515fd661bf83b37030ec04bf4b941d1a4b73824..50589181ca182c63eb0cf854a37fd96aa3457201 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 88532946cb7d16ec9c71657daf63d29cdbc16d48..1b20bcedc167fdc1a74829ba6bb02c656de531c3 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 c837aadff65ecaa8b74be48b3c2c9a39ef13d747..10a41f81e369dde1bb7fcf7524d7811ea86f7bf7 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 1c6866e64d1783a0932bbe0debdaa62ae688e7dd..28890687d67ae1619d1b292767f5a05f161e12c5 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 69df212be9478ff787ddc96cd650a6c33c6d14c0..0a5b8ce61d768c8ff063ca7dc5c4c5a595255c38 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 a9f2b1cbbd406610f6dbbf3b74d9df1970d1769c..c8311576c3fc3c51debd4c1de8ef16b9d6526c1c 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 6689f38b1cf02dac10c0921dc889e797a6edd57d..ebd099d360ee1ee4e264164a08b02478dc84981a 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 3353594a0895d7703536dd6f3ff34192f465431c..a7fb32355e629ae97a97ccc7ef5553ffe66cd4a2 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 ad1bf7bb1c61a4431677139509c1be8e5af27866..7c4635c04d7960773afc1d125adf2af6f12da0e7 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 a0f1f2b944c34dfbd47bd5f10f8e59e8d224d353..cf6c28554950765dec840fd16baa0658791862c4 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 d32cf4a4fea7fed5f3b667f3c8ef0b28193a1a63..16a718db25f939557221dc44d638975de599bd08 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 e7dcb7486418817d79fe3f6ebd55c60e877e485f..379f64b774e11ecff04d2cc9818c6e8249fb0f40 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 1f70d2e95e734868b7a582922c6ddb2e276f5a27..38740aa3d9b0bff76256510a3f93d58e23203462 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 2eea68867b5cfd03e7a37d778330735b27bf7881..ba6ec61fe489b62b1ae98c1cb1f38dc267945a0a 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 168d0c1c91d9ac46ec0f7a4979c727345649c21c..7cbbbb133e7f5d70452ac360f6f1aa782df61e8f 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 0aca1754b2eea7b0c330114f1bd309c622ca50b8..d89413cce6756c83c1b5472a2d4524f4c39025c2 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 5bf9025c5d2a49b77397b57a5827321018936078..93e15a5e40073d5a84a5153865a2e488ec15ce83 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 d00689b1d4711df33b7addfe502135ed17a87f70..736bd239550a5f7a630aea4e7c21a912a006d5fd 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 116c65fccb6a03807eb57ae7f9e889b5cfcf9501..e737f4884c6524c87431c01f27a9634ef62c7e55 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 e70f4d419dce0b57077e94c80f95156ec6cc908a..cea4a88e1d5febaaebbd132c9dbb643171541460 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 721dc21f5ae5c76a870b41bde3c97dc1763f13f4..d43d548e151835e8433a0695a83acefa14d443cb 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 8b8ad7c388736626383ab6651e24d8369a213cae..8826d50fc55bbd8a7088b71f41f2e6129b0bd064 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 9c66f68f7de200ceb8e179a095e4437a4aa804b6..4464ab02a5a5dec208cb4e60d66f9e0b32d00403 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 fbde18f02dc45dfd65fd53970709cb0fed2a891d..b02a5922353d3a5a22df26df9890361be060c5d7 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 bfb9ef7263efcd4ea66ece8733637b97485f58f1..76872949abe2aab2c9e62b1f16d5ead273035f1d 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 6aa741b6044d76d3bc2cc71818a609fa84f12211..8c8b0fd56657a3c5a1d7085320590cd0058bd767 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 8a8a7be5b5537d08b7c0cc93db65f77909f652a2..5543cf777e85fa3da2568c0a5477e41536941921 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 68d48b5e03eae95db9088680d5621493f0c11e90..73d7c2fd6d42da91440963b6f897943ddbabe817 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 ba7925e525a3f3d30ad53a2b898a32721da647b9..b77c87c63b977681956204f4a13e28e45479c608 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 08a01ccc8908bb2c9c74f56919fa8681ac622841..d40567a2ab779dc5585df03640e9d438cc6c0153 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 7db1c4541ed059fc5307f4d36adadbb3b05a93c5..a416d051810aa373108e2b72761dbd29686f7dbb 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 c27122539eb06122d8c2393f297bb1585df32046..a1583dbb8b3f7b3c6c3c0233ffc73e4cce1e4ffb 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 1a2c73ee32014b571152d100dc7d753c285bb00a..c8bede7a6c3f7fdc7ff43fbcc3b4f8829ae16b1d 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 96ce63d71e5725d5f6814ade2eaa6a29aeea9a89..37d14e2ff1bcb05b55a5c0bb0db26cbc10db6326 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 353015ba593e07ccaab83e617c271fc5a5361a18..85461a05c2245759b2c9db5253af4b05749daa7e 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 3a49c70e7165714f433d12af5d42631f425029bd..aa8355b26d1d9da6232e04f1e81d84717d6f2608 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 d6a33d7e6b00e5f395dc7d9bedbaa5533b8f3465..e5c6cadd37f62944e6c10e5eaffbe7f143f51875 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 d89c9821f52a1a1c3d8e17ba1ffda38d218e1cbf..1ecac9af31b32b103a45a0881e58076b9eb92136 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 f3e9bb8a66bfb565718d8fcca1279ece2c1ad1c8..de1a6316b358dd422a93e0d0f1d27ae2684c00a1 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 86216c3b5dc19583ac83d272465551decf65bea1..dd743fa7e2169fc9b46e739fb680a09091d02054 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 5614ba65ddf1df9060d2b6c8669d4c0286b02f07..c5ccf20838e898fbad5a895c5a7f55755281d174 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 d69834a64d74b4156bcebad2c171d3248b727d9f..fb6656e0c88083f271f71e2c2de53028578404ea 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 85009da101a85b56e710f514f4f9dc9ebc4dd74d..bbf51f94e89cf2cf2022d7dbab2545b177fab0e0 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 0dd42680c0579515b70777a88f72838c9a3e0a27..3e61d01e0122f022131fb5081dfca61594d0a9ab 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 7e4eca625795bb531936a0e0d55f09202d4b6731..775b4e811433074f76129f81bbdb6b371d3d22ad 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 f17f7bab788991e3f1768a94c1374ca5fc86ce68..d5666e7c5233e45b6d650b7397e23eb9ea07fae8 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 edbde8d7ff5d172ae60b9073676a255777e58584..f567afabfbb7c668c2598128d56985d1e379cb7b 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 4b40e9f7fed4ac51211348aae2705a6e19c09fd3..c350244e263fa31ac911338b28c4b58e5f805ddd 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 f5a475e02020d9dc0e0b7f357b5543a4d109596b..6b208d0cd20731892a67b9cdec4bfd657ae9c8e5 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 880af6e82e2fc5261573cc993f4334e10dd1a98e..c12a89b0a66cb476715c703c83b1c86e8881f045 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 eefad6cfa91df1a4fc741abd0d0c452a6eb828b3..e7ef812f4f82d3248b2a49cbf33880bc383ecda1 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 29c872a9f7e43e159dcb74ba274b444fb4d5c9f4..51965e5856b0972ae9831f0516337c18c8628617 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 4816325ca0a039c7362817a7548bbdf35ffed6da..ff81ef7a07ec0bae1bff28f155e6814dca6caa6b 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 7a04fdf5ce8979856a77ab2839d8df8c02c25629..87bc43e7925c822cdbe5507fdf50ed2114b8c309 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 9da44ed791fe819587aca7b460d4e6c3ca7f0c00..d5a7eeff74e187b17e1f52bf94a49cb9679411a8 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 c78f54a573994cd1db4592f45bdde77051b23033..11610a3415aa24c4540b4e53b845bf863e2b88b2 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 70b841ed6b84001c974324748fbe6ae2f85037c1..36a4f8720b7e9f7fd1044cd408ff2bad7dc66b47 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 87292a527d6ba130d328d0bd5311ba477d77d7e8..f01f42ff73569d43c8eb68e22f2cc8407973ae65 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 f7e39bc5574d03e7d0d3e6ca8ebfc5274e55f0f6..d312859b0f07e8b1d3ecbf7ae1a26ce8bdff6655 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 46072646908f8fa2caee492dd2f3d9945ee7a82b..75e757303a67d2149f2f644ac2443bf8d5f6d908 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 c40f3d795f97b78b386bf0ded3ee0ceee31b24c1..210abc649adcd676c0d0aa21434e5055e54418cb 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 c39870259d0fbff715804b6dee23d673bae1838c..cbbb99cae57c90c5c80b51d85b8d7469938a6f4d 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 909ed1394927d8b22873ed8b3d9877024776335d..4b8eb21a0f988b05b4c8682f202a32fb98e112be 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 c167ea12823e7ba0d9337e30a8bced4f222cc2cd..c585f614da428076859375781f5f8ea70706106a 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 a4de8570a64990819d6e42238a6fda475211502e..5a90ffe060d253e19313a357846f2753bb9dc3bc 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 dd7d6c8c630abc2f6699923eb2a523460b5490f5..1481f8762df31dc92f47b98c6d0a59e83ef9a132 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 f64615cf2bedf47f34bef438108aa331ee8ed29c..4d26c7c0012e3e70e21d921669a724f54e057975 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 bfaf60ff2ff5e30956b2edbd08607fa51fda01d7..fcdb8064b9317d4f18ffbe784e9c86bf15fd7432 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 75d1bc3e4406252446b82d6864c9ca68c2e92a8d..4d4c4364a7d5dabb7e50472ac89e77fbfc83b447 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 b9f856eea45495b961a527307dc45624c8de1287..52483f8dc7ab281b5735fa10f803d0ad2e127f23 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 7fefd59a2a9fc354efebc86f3e86cedcdaaafb87..2842fe6120f8b8406b751c3abea4fc300ec6c7d6 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 f87644263d5fdbe0f8f5d41b9a765ec0baa9569c..efdcc97003d2040399acfe81c1f61a65b66c8cdf 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 53f0d647ccb00e5a035284a582e52493c9a520d7..3c62e1a2a2d62c0c577e67764989da6a57a071d0 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 4e3a345812723adc0b133b38c47d0e9fc638fbe5..c82f89f58f5469789db5e6200cca1e82fade6aa7 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 5b1d211e91808d045595f9effd5581c0d75d4a94..2c838838a5a96d83bdb6e340d7a34a4710e506c9 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 45405fa26e0afd6ce1522454f3e5b482deb80b72..21a8b57f1ffe04f0d5187019e90704e055ab0fe4 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 496d119fc6f2ff1edf3d991bfb478a2be143a525..80a7730a3294f8c989fe8aa2db138be17eae7352 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 5ad30a928c3bef5981af915c8f08d8275c7f1972..19ee46249fff187979ddeaf5da05305cb8fca9ff 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 135754d493421b8df9e61ff5cb8a72bace7c85cd..0668005bcd37ae2e6f45a77277acc12150ddf79e 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 0c6f23d2f94ff8d38c77fd355f2d69e8a8e4e852..cb1fdead29c3c2686130f3d8f53887476d148320 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 4c88c5c912f520e9767156a876b9add872dd69f9..0002b9f250cad55904a12abef49dcac885e43f9d 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 cebdd5e19b16bfb4c7714a10fde34444a351afa5..99656c4970b4b6f6f5f6523ea206562b29289d5b 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 851d3221ffb1b2a7a936d1a136707ce5fa5a503b..9b054d507864eaade66959bb5d0eea967dcea7d9 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 6b8b20471466fc2f71270c4b5cb714fb9ea62a35..c3776c9b9e8fab7ffa54a87e560ec322e5a1e4d3 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 2f090b091b4bfca95c645a8c3c74f3eca54b9f30..a65e5f4dd1c2210f87b908f3717912449615877c 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 eb34b73b6f42b4765873c4c659b0b662c571bbb0..6b0b2e141912f84879df1d808eae7e3b329c45b6 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 78c7b15cacb2131f54c69d024cf8a7a62afff9af..247a72eaf2dd260f7aa8ce7929d82090616cae8a 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 f6a530cbc0dd6ebcb0319e667dd9c8d73c047ae1..707a1784617c79c24782843d4b33638e87afd72a 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 bc6096aa2491829b7010cfd0cb2f1718818379f9..f727f26f6c37ba0a1c4394add3d960d4bbe3792b 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 ca3abd699e741c607f5b4fb3df30dd931d69d8d2..e6ca38115c6ab76da0cdfa1ea866214722902c90 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 01922ad93c515b833480189007636c1caf8fbbdb..6505040219cde916cbde2ea9c56ced68ed57cda5 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 1475ade4113a80d1555d08d2c1a938973dc3be79..dc227f2f10f160733b3cb1f70d162109eec0829b 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 53fb17291b924a20b8c9ff02bd74be9b9279d7b8..e95fbf469f821dc07729d9c6f09f7fdb9da2005f 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 6044b353a32f3a17b96ad7d05ede8b6af2f23f77..998d9e7023672c5613f4dc0e540f8b8909859885 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 6e4f2a4e987bbd878d00aa06e802291c011373a4..50dd956f42c03e33516badb575a65963579e475f 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 1062fd5154a63d2759a7eeb7dfce6084d5c54a56..449442482823ffa7564bb307f36ba324ed80f14b 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 5e556af3e331a075f9a70a8866677edf54826697..775fe47f650d186a1819efe5001b6a9351a115b6 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 1f01a774ee959f2add0fbbb8c51fa9bd9a73fd2f..0b63239a4c269377d6072058915621763d3ec54f 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 40808f3c628b0df3778ee2ca3286a532eb8b77b1..6b37e6b6350bc5989764602b942baf04cab83d7a 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 d5338cbcfb575c2d71fca87ceab6a43e0501de27..9eb097cc2c44c3de0b28f291fe3daa95bba0ebee 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 5600f5b519081d7ced7db95794608d0ea8e23087..a306cbfa555ff2f6c8b1e489f0a40bedd0bd74c3 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 a03ae2eeb18e2b3feeae41fa9b3be38626c83a4b..523608650861a0003fc799ee6fc0b94d59d7b4fe 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 8909a97d77e0f7e19a7d395690bebd5856707938..4a532895ea198689e6ba4fb08a17a397e96fd71c 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 26c3532e864b6ee8f8e37e0f293f760295b9e2f8..3aa5dcef871b17ca4c22865ca0e07a1e3b44e59c 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 4bf8349bf29dfd7758881dddcee1f602ab1bf579..911063deef063b6c76ce6119620a097ee51bf73f 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 9028d6f511f298fc323f7e4a3cb9e0e61a0c83ae..9e17314d86d4e5acc6616c903905b83265dff70e 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 de009e88d7812acf45357def7e394b033529efef..5ef3bc0d7b1a0b152b6f048e075ff849acaea1e3 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 5d83450ec051565a2fb0bd7588ff16634a386032..bbe170f8f1762821c7f73b4cd2f026e9f432f8cb 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 286bc0b92ca5b655104f8a62f759b457b4645138..4a8b2bbd7c92824740ca00fb2146fddf38ac70ea 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 c4257cc1d59d24c755eac2e7ce8980b1253e7f68..48d174035eb9b33f9c44943a5370d41fabc9859b 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 0b81e0877a5900ab0c4ff8757c9f725cfc76abeb..e193d47c70ad6aedf1e5c5c0d8069b4c80166b6d 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 e95f20e51c6ec627c3750012964225617e7bd5db..0dbac5ce52c3616c652f894eefb6ca0fc44b9f19 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 bf5497636de830df3c6e51c5362f53114adcb131..f2a2ca042b3a28456ef61f9ec9031e9f0f167049 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 491903ff1e47e9ec90a114b7483bee6f97b07784..e10284637811d25686a63ba84af25c954c99f1c6 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 cce40e0dc04685a266677e77c5f532c48892e023..428b9f6785db8d5e0e87bc1dffd68f3719b4c68b 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 a3861761eb40e38a0b4c8e3073bd5f2eba1322f9..1eb706772c93317e9d1655ad7a0fc9fbffb1abda 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 2723b8d30477f761dc1d654800bd06f0bfe94086..e3b9bd406c32af2f39c33b67ea120f5c0a4486c3 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 186392665ccb6e785cf63c2164dc8ecc8327c03b..9280a0b19d9ce61019123fe1650355b1df2ac5d9 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 b3b2b8a73cad2b7094a91b30c05db8a3294d851c..672318fda48a2ec866dbf1fa684115d6e7940d46 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 aecef7a7751b2c31d0a5605293db7fa87d387df9..60a23a9fa816510d71d69a31279ff0b250030f83 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 9476d1180a14a660185b276a3f6f0488ae7dddfd..9e2121d3ff80d5b0fdc8d540699f0b6182fa4664 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 1402302c9597080eaf1c45b36ce077277b1a906a..3bc24da00aca57de0fd74ccd9a2371f50045473b 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 84cdda7a69ead54fb45be836de0f20a0e67b4836..3ba38d70f1b714af8a0a6eb79fbebe4f6d0536ab 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 ae966923b78033819be886f1c4050b072ac70c05..1090a3087410a6c75067651524d97d88ba5646c7 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 07e09067f7459271a3ace14bd98f776e08912e6f..7f2704cb34595b930d0110e73bc640f9b4f98d6e 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 a68a4db189d83a859b538521f912c79c518f7d99..1b8039f9d649fd302e51a0fcf70bf557cdaac85d 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 7079841f83d80b8ea3321710d3e65e25ccc80f6c..4061b652e9e0ca772bc5ff3e83ec418694cc7a5f 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 b15e37d82d0aca942614a00a645bd541eb92fb6a..e0cad15cc6df7d1ca84cfe00ccb957c3ad22a98f 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 969a0ca8a17ab7b67b9b47c4c65b9a2cfcb08bc9..ac2d895794715454c175cfc36e0986ef62273be9 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 40366b268c0980c442ab471090258c2e70534209..3349223821bc26383405fad87fb9a1c19bbfc197 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 733379be861446813d0a01d70893c7429949619e..1c7063f48f9d2ff716084d340093929eece602f3 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 6dec4dd6db0725a11e91a680943e32e2d8868c12..0cbd245cd71328c977cbac37d3678a1d48e6d214 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 f3a47fcb1c9d42f26c924e3f38cf039b541a17d3..6c5ce6df1ae73883b1f0628e2cc9822b172dc034 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 6da7b6b1b75ab3f0194cfb2e7012bddbdf241c66..cb4e0848007a45797f91a0db170356d70ea5402d 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 c6a7c72b59b76a8dfa0f301d7a54e663252ff4df..b7a4d301e8472fd4ac465f2a4f7520feb71d9e47 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 80ca0967db15c33357206d6458034ef67c6496fe..e099af7de3303d667b77e06fa6310d77cea029ed 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 66539d7e8379ee5f6819e0f907b98b862bac0c94..ce4bf9079da59c118f8aeadde9de11bfd72c64f2 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 63d4bcb32b0f4c4e0967af321a55bd5f757c3526..b2efa7b6b636d0c4bebe67dc451fef430ceab645 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 94b8d70952ccc3993dbe2ae7811acdd3f61fda26..bc0989739c2cafea0b59a8da94d398ef8f11bc8a 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 5ec162bf9bf468dce38e6f07a6eb5fd5058bdf95..57335479eb65f1714b10672ab4f192b5aa5d3f6b 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 c1900179d2561b9c5a907dd08ba238836239f5db..2deb02e091efd29e26aedcfae8efc7276f823319 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 902e43133d1c2db6bba4b34ab890cd5561b1a20d..028e713feaad5a374f8a9404ab65f144e21a6471 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 cdc3c884c5953d6d7da9c1142ab6d4b7e33273b5..eeceb34bc17ad995a27c8704e8ed27fcf98386bb 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 9282c62d44aeae04c015fec94e54ddf2057acda4..27964130b9fc60e0b221694f06ff243938286eeb 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 ebf5930def0365b8a797af7974bb62385190de14..38c9c9e3f73112e1513ddc61c27ce5b322db2f51 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 84db6fb022dd0732a4c6a15309b89898e3907097..67bdcee386a4054312340762cc6e6e9280140409 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 d1996e3a6155f730c5906864de71b9c9b196fc8c..270d234cf5dae2ed07291ecc531eb9840c85c355 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 122e59aa6be479edc4404c447dc1f0b954bda06d..86ba171104c0a640d63c578b15609e46e2972149 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 b5e415560f91df15a5e947f8251b2a6bb9388b71..8c396151f544362cf1c443bf210752178a837c59 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 bf1efb463ce6dee62defe846e8ffb807601b4c4c..c67d7656561f9f5b01e1aeadaad3a70061ab721c 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 621c16baa338e664606cb19f58b263e3d081774a..618495926e55a74c601d4e0c033adb8751d39eb3 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 cf5e400c1f073b15c8f3d0b2e4f6a69436e60743..f6d17f3d251687546751933ada52a00ea80dd9d0 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 e944655325e0433b97fbe87484b9a6b4052e6eea..d6ff0ae1c022830148aaa032d0e39e106333e6e2 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 1ecf6ddb1e6ed3497cd982ecd76b391d3f72ff8f..f22a873e145fe0e9f05a185c71c99cac7e7f814f 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 ca8afe58bf17e81cab8d878bba7c9372ea56e46b..51a367ebfb8e6aff9a8a8de722a9773df364bf7d 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 a037d25744b5d6991e37977624cb8705c8283f1f..ab9e7aca3ea7954949ddd358538ae71bf9457966 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 4efbcf13beb8beee99e0ccca627c1dd4e51c409f..7a92e44861c7b71c96a453363f789bb0e607370b 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 1611bb73348a6139fe1349e74d0216c066cecba8..8371f93afa2c2a89888f3afd5e1df417f741d0f0 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 4dfd386c428d4ff1db8f3d21168cf8a54f482ce9..fae6b6c008902c14b9be255e5fd8e97ec5ff7742 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 43f58152d7e0ac7de4219581495b5b2e796f547c..3bbaa6583c434de13f882c83659ab696838b0061 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 593bf7360c1c01edb9f00107722ee90eacef826c..255cad3bb01ae8d412e882f955136c3a5a817e8c 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 bdc04bd189a2fd55124ee7f47792c4cdb7c65670..413dd564251b2316552268d1cd7311848f26866b 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 cf7f59bb9bd85def58aea348712063e2fdd303df..73a3443697c35f8f30230ae163d8a5385f94822c 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 8f5e9f9189c9e1f535e0680afd0cff8787fca1b9..f2284037f386ce90bf826292eb6abb6dac68f820 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 e0ba2f4c10eae84ad5ed8f80192071cdb8f92898..d3c1dc268294ee5c2a39a3e3f8eede467ba0eb72 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 62d51836ea6b3dca289deb85c1f03cb313f0e7b7..b98529a19722b90ba9b4bbd422a9926a82c7487e 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 287696939fddbe0f2e9ece1534cbb4111e723cc3..29cb40ce413be936ff6f6cfd7a1c445afc9b760e 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 bd4ede028695f83228e6458fc228d1e7f0bd5a1e..b9edc97e97144f19d41cede3c13c2c861ddb2ce1 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 8d900a0acd8374792ea4950f4e8a6d944d0a9236..d81bfee88cd7731f6343b2c177d39747bd658dcb 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 ac5bc110ceb0cdeee9e611f0a79d1acdd1d8cd65..acb714706ad575ab7b199cf63a4a9e5daec73c05 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 a6eac986650035f49cf3fe630d1a4c7d5eaae0e6..535e5e3d1f02f4d73413656fac2c4b6ae576e74f 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 5148f774e591a4169ede33ad53169583b8a13d2a..8c8d57405ae4e9c6c09ea905f68a77cdbce772ac 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 5a1b108c85df1142f3427c23bc0878367065bd2e..5ef36f1fe5aa919dd579052c6624f47360c3cc0c 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 663fc0c94565fe9cf80e427ec3bafc9f0d3de288..c260e6b4abae6ed4db4192be3cb6377698f980f7 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 0c09c23c8cea4ae7b88212ca2de10e0baaa8c9d0..cb1145e8fad9ce09f02bdac1b59bd8efee52269b 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 dd66890382a8513426a5975529bff9223892ffe9..c17b03c000f8a4af77390ff7b3aed4c3dfa718ce 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 59ace8e68bdb085920083ef0e813852aab8ba0da..3b30051c0665a673f9ca3b9ec55a20dbde58d1bc 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 97443d720ffcb5109a3c51c8d618d8108580f719..ac1f2789e0e0f104c40a862fa0082cbe09cf6bb3 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 d396651b65bbcc5ddef59d124c5e2b2f4fee0b8d..340456b3d00cb5e279c1077c08a3af0e350d7997 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 57267ed1462e2982a61e281b29b82c5eecb462d8..f4ab977dfe56c609b7685e4d06f4557037e34e35 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 b8baabd5955cb9ed8572ce26e337bab769802b02..05440cae7663dabd722b3222062a0534b0f5df60 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 0be4cf5fe47e2d9abd32f6566f2c9d837d918e37..20e1d20951e21e96d6cd79b49ed1a07f55b942fc 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 188f70d3fd8ac43f00fd111a41942a952cb60869..c1d0dc098d35c67aadac7af1659cad6c4e3ce273 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 4537b6672526b90f1118942b057329b6bf1c7754..74fca52392d0b51058442a308bae8268f3cdbaed 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 44d3b74c19f34c55b1a90a3dc4c587ec1476d7bb..24c491375bc0ebf44d22d24cd8d7866f5a42a552 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 62dd9b98cc8dd93f4ff3ba8d7e37fe8e660805b7..cf1cb447c880a828595f039ff7617c0491832e04 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 91d730883737857f3679ff1c992fcc94cd7ee845..b8ba381d6c0d2974df6b0fe478b3797a15b46e9d 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 7360669aca170ba4d84c75cda2db10578cc51fb8..54e8b8dab39c0d6faa989657ad32d4a02ed754c1 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 391cf8302f17c50ed9242ff5f03bc7c0d578f2d6..3238aad77379d4ffbeaba5bdd183f404a4aca00c 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 1ebb97ece1b8b478fd51fb03784468d4dc29f7b5..e4dd8b87070a35ecefcf2a9893b39b8a3475bd5b 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 631de4f40df5f804ac567152ec70af055fdbc24e..4160dd922d203726f08c3a242092d561be433265 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 3f36db04cf2176d56faa723949f48e0f4e2d6689..bd3dc7f1de48e3a15bcda700ebac477b4c1e2fe6 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 4c841084665cf2932073e9c3fef874f046563e87..98b57af27052c5f6121b8144fa67e3fbad7e8fcf 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 b52cddbef9af00e013f96a6231675dc46ea1636b..c7d8f4c847e27a8895b7c749bacb519a5fb67b27 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 24af0c8d41f11fdaff26aa783a8c72da9e39f604..6de9835c9ca21b6d9ba45e58841e1f97dede66f6 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 f8d9eceab1617df572e4d5a240e05d71ac4420f4..3b32f8d6c9ff03c2f06cfe4ed281f9d57539f0d4 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 8621bce255a3c6860cdb8d6dcecb41f2954a107a..dddf142c38d5393af1ab1ccb977656b7e20b5b71 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 02035ce54967e18c33b6b60d3a4578e3265338b0..66a63ceca6e1c58260e6db1ed3c00a2102c37337 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 f0516e8de4924597cbb329190906ec8361891ab1..2280acc7465af057c146bdf0739b9339830f04f5 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 bb1df8361933c51e6dbcd30f88e302e6d7140f33..5d286df5a0e9ef94d3ac65d05b5bbbb2e5dcce1f 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 8b498e38dc1a582d37ad02de752489d5ee69f16e..218aac73fb3de6582d1a198f297d44e7ab077125 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 e53a862837c31c018075aeff2cee0a82f47b8baf..6de1a2479bbc966f0609bfb6c0575d0c93ef1c0f 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 7d131a9e69802fdc708b1fc29d25370bd03aa4da..32f7608162f28bcc738381918a126cb6b504cfe4 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 9b209e70a6a5df8bae96fba9d7cfe265aa1e5b76..76b302d4aa31a07c4da6528294c10b69cd6e512f 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 a24ca294faa30829752953dea794ae3a30f41b3e..3ffce936efd7f80a1bc762a0e616a19ef17ee82c 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 820f0d36426b42f79f113c4b09d336d1ae2fc918..325e3ef28c4ecd680238683c8e195fc6a6347e98 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 656b37b43f9af66b527c0ca1747f1c0167407cfc..4c288328f0a1e7e817b8e87dfa0e58dae8a62287 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 54fb416bfce5dbf210a184b98382b3eea6e697ca..9a145fc93e40a27418282e6b5afaaa3a0557df23 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 8404a80b8a03948bf8b48a4b832739b76d09bf65..a58e17b2e357d38d78abe53b5e70ddaf4c276787 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 1462b6551a474a891c47706235d46ce2fd2f1134..3b0a8fd1c5296ca8561b657307bd3bc802ea90d3 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 12d74c81e43d601a69480fdb61fcb8fd46c05eb3..48a9db38ee2e8be774756c0cb463d948a15d4fb6 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 34fbdce9748f106d725ba3acb85022cdf0c4c001..22b9e8d2c301dc34c0a6e81dea89e26461fec783 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 47560d63408092c2de4a4ad5548f0e13504e64e0..dad5bed1bd16cffb16f6c20bcbe9b3efdfa54ff8 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 d46631064f8d557043681ebd97ea035960f4bac6..39d052d8b7973c0896ffabbdddfde3702e0098e8 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 7de7cb0a787f1f5eb46550ebfa93ab9b32737642..b7cf6f4455df6fa29e677d362ded0681e0fadc41 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 03f35092c75c30821f6ee165ac11fd8ec44b36e7..49b7eade61b6c7c7b3ecc8baea5022407bd2dbf9 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 8c58bce02a920227f1a00c7a30ba7a8fb39d37b7..d425226d33177e707d584ff4825fb68a61d5d724 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 f0af7199ce14333a72ec2b8b63f43127f7a9f159..35e525db40a3d866f08bc79228475461931945b8 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 6557138033b264f4354a0c6819335bafe45471bd..91670ac732b366f15c09f4cb722e1d10dad2ff7f 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 4faec16858395987bd7464a3b0f5a2036b3d2599..62ffeca8c2ed231cabe80c2ff82cf59d9108519f 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 e978df8906074e439d6d2d76191a02f4c902da59..35d546fbb4784e2824a4c22213a927491e67325e 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 873e29e7f97e28d0f641609acacdd8c79f48d372..dcc6ffd3772c38a48e2516901d5ac87404edc484 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 05a66a9b087542bcac58730bd574d26a69d121d3..d9ba1e3cfb97f0f20ce1f1f5a41f175ca385e654 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 5645355e662f3bdbe8e78e3010510df789c4b0f7..9ad2a113d567207302f87610686a8e48f569cd74 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 c588dde556aa221f34b766c400e3efe7d7f1cd37..2a573f03e7a3c052c74a186272f545ec20d30a57 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 f404ac69ea683cb7d097ad02580a2ad4c06004c9..8a64f2f21882e32c21e3ea1e07bf28c89061157f 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 504235ea7598ae347b0cb80821a26544275862e4..fd3a4e0ab5a3eeceb47aca5ddf9f287a242cead7 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 a8d4e11c9a06975c5e43492d5374d118cfe2f20b..e85153fc0e5df0eb43bbc96886bfe76c247ce114 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 6a9a726a134f6918cac46c7bc06c5d0a3a3a7fcf..7e7269442f5f72aed5f52a93042dce2fa49d9aff 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 bb2e6f3d5c0079d1e894bdf4da50d22b0efa67f1..d7a78953913d7e3ba70c5890e90b9242d761b442 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 20afc1c846745eb3ff69bca467c082c60f1649b8..d009975324fa2ea8f527647aba990c69d4d58c3c 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 0b6ec5c8a58257a81ede77c7bd3f92769b3aa642..49bbe509b06791c853fdb7ae7ea09a036629aaae 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 b0a501ffa4cb204fde17cee5ad1db2aa74093b8d..05f6e56f7c9403c769f591328da2cd2364d780e5 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 971c5619ce89874f0b62a3cd030453ef6fe32210..b4467095924f8c66c832ee51cccf49ad51a5590d 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 65ac92aad101b0d6b52123266267b506e40c659a..f18b7af8ea70bde621798401e590840295459a70 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 e2dc7fa62c57f029f9ea94ccf25c43b485dd09e9..009f416ba40f9c121a265d380b004624531c1046 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 3d015a1e3e7832625fac2a1092e36f47912b28d4..dd91d7f43b848b61ca3fb30cc7a5141eaa6bfc42 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 44608dbedd720ff5a1a0b058a6ac39f5f29b6d2e..1de2526373a80c460dd2e5454195ca23bf705903 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 52989d4f48765b80202e5aa7ae3d83722d7a210f..a09d3decb569e55d37c5386bf3d81567e8bef891 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 a6f0879e06b4e698a5ad1fc93524732eb54c1796..c21f3c3b0be9b06c4d763152d0d6c6105a247e7b 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 49b6e246e5028451b88bbd0c12aed6b99621e475..217b4983fbbdfff5c017960318d6e1b6efecfb31 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 690a9812d940088c05a4e54ae0581f7cf93e324a..0d30dcd71602a926121ec1c4550f74d47ab22cd0 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 d10d41a852ced29f0359d3df200e7d32e49a2461..e09911cbc9485a06f5a985355b45b13b80127e54 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 987fbc63f9dca719456acd13c0019f5c21175af5..667f02485aebcf6c84068612b6bcea5fa18f920d 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 7252972e4af2d9608c61067341f96f15a781a2fc..13fde192624a8bdb4d6d9464370d350a7c9bf9a2 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 0a7591e834e4a999971f97105e9ca39e9e145e3b..2fd555090d49552d60ec9340322c1b70a2f740e6 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 fd4789370b777ca2d6dfac65f83d14e73177c14b..72d38a6806c07f67aa39e105b2f3dc0e0564c493 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 e58bd06adba94b75bacd0226f62091244a232604..6deefce8aa28740aff7bb8f9c41d81aea878715a 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 46a335ae611097494f565200decdc6f8374d8ccb..03cc531ad0452d6662f34ebc5139528cf78f006d 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 08f3f78a54e4b799f7bad818d970c0d53fc4c85a..53601debd4c35c17ffd03318a5a83bf2082584d3 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 cf5922d777eb3933b807df667134d20ad044961c..47c3edb77782bfd021c478f828b90c120681a613 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 626d1b0ccb594c02e08a230d83a449533f38834c..0b8b5d90b376b8ea17725b8031ec802ca8f2c64b 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 310f37528118cc1176f2de13955204671fa0073f..ba5b979bf97bacde2c3c3871f59ad78401bdc8e0 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 255076497743f21b72f967c8be1b1a85a8d5587b..e9719dc64dfd1d0e0e5ac9fa73996889b39111a6 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 876e68223b7f22c990afe562b348cd80b6b97162..571cd00383536ff74d865e598ee2e299c76ef166 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 2cc6cae505e813ba02d757ae73434189598fc13c..1cd998d63f11daaeb2496e8a6fa9e0d55c9606c5 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 b5cd625ae473358331c010a060eed3f9fdb8d90a..f0b03eec136295e913a9c70b5c28eaad13e5aacd 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 894e798fe99ff76ff47ebaa1da8cb79431e9cb09..38b97a495c5f37357f75668b21da803d5fdd8795 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 7f5297e500682757998d03d50db05c8ee9ee1506..6e9c6e9ea9df3dd193b5f7a03216a3d2aeaf357f 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 604515853f2c9fa2c02c8fa4281830f088b3cdc5..8589d491c9bd37b9d8afc5811a6dec5d394c184d 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 592791b171918548d66eccfee37e8971740694b0..77044f7fed10cd546595c9e555d220cb1258d17b 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 c25552921bf397304636cfb4be41053c73e8ca50..557d05c1d4b9f7cb7305fcd45ed13bcd55ceb75b 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 d70fb9ba54093f5bc8e4d45bd809e37e352b3c6d..5a41972ef5dab784af5ca95e4d5f69df58f06b7a 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 8525a455daea1b65974ac7d50b4b13a1ed765326..126db8726444d772e4e765a731e389e8a34c2c2a 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 0fdac953fc9cd0febfdff1166228ac5f31c03942..72db36a275d4af562c484e7093eb228204d5236e 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 ab98c434f5045857e10c2d0fc28e3a6e69f79624..c196fdbb8a3f4ff91e6ec8d44112fd2d93a65933 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 323bccb41af29f34864713a02be917b69b02b355..c83513d6b67af7c7ac676790bc5365a233e867f9 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 0000000000000000000000000000000000000000..c56b2702e2f11f67d9b48cfc8bd0a93d0a198630 --- /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 0000000000000000000000000000000000000000..81a206dc73c594532b003e157dff9f85cf758b18 --- /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 0000000000000000000000000000000000000000..d69efb278f6658d093a72b592cbddb1337841ea1 --- /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 2d26ef1fb0ff121579b90a50b7c65b124b554fe3..c8cb6ab44fb761a1da44eec94602c3aa06d175ff 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 d6774af4581d54f2c74ee1c5f5755168b466e4f4..5d0770b98fd63a03bd9c64c43060b4b947035b9d 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 6e1c2e8b2cd14ad805fbddc9efaf919f291cf524..99ed892e46d275db1f7a5b72b947610cfd7c3063 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 357c9c8f65a7b6d1238ca131cf45d0c6938dfe83..c050041bf8a699d559bbb3f14a421c6b6060fbc1 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 d8ea3ae57927babee146b6a6a50852e2a1b3d0a9..44efa5b174bc0aa109ae62502f36fd597940e625 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 c4d0f1a37050248dd1b8f24aa73acd25ae59069a..59a47a710c13e5152bae8c4581ad1171d20a1010 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 5ccf08871fec678a19cf08d7b38f8c1223a976d7..6918797725b74b50c34cf947e289d7fedea38a94 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 de19c9d64b5f4cc083277c6eca7d659aba902bb5..7492975d97da7aabae09dff8d079398d91f9b45b 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 1697ada94100d7588f34480da159ad3d945c98b1..deaacfe68c3c530ca09f241622a8c7442641f5dc 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 6191dfbb9e82fdb802b19859f4e05382673f988f..ae9189050d31d14a14f85f7fa5e9e090bfcec796 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 7bec6162e579bdf3fc1c3bd1ca822541c959a9df..027bde725507065e5d0edea420c6775b4c76f4c0 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 a1ea1ee2bc0e43c92e52dd1c4514d2dff54608ef..7118cf20e7d1197a51f6ef2ad5b1b1d5d1071913 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 f5f39918a477113cceddbea84f019d59b4c3e145..72fd4fde86cc1dfe23b45a2ef62f634c62ed024b 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 eb7c7c224bbd4486f69ad78c3a78b945d33653d3..e67449eeb1fdb22e01a0692e7f499f5eccd6c123 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 ad30d2094196e31b91beaa7cdee60e18e3940205..3e33ed2943b808965bbdd6922aea46f7908d5052 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 35bd71805229355dcd0e2f97623d610799a6457c..efc1809da1b6e14e27d145af7697bef13dfd1137 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 fa46e25ea6aa5854c7532f3f1214c3814d5a2f4f..c433be7befcdaf8435bebce94cc0f2ac011bbe6c 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 59364dd0455c1762fc93a1cc352865df83644efe..402aee05cbeb2dfdee2bba9de219c273441d3b35 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 9109f881551ad33c3202c5d777553a73aeef29fc..c688f0b8587a697e94b4cc96a6d75cd8ab5d95ce 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 e7db06dbc68c6a2b52e149ffdd41ec832d03f6e1..2a166d58e7bf370b9a106d76b64af03b3ee51f2b 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 7b33c6ad1cdf5f2a98ebee3d87d5f01e8187bd91..20564e4efc1f7ab47de75847c05929971c07f5ed 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 584fc044bbb7313e7945b9c18c0b8d0e5912bde6..b5ccc2c8133075e8b439db204f7142e03639ec34 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 fc6ab84989cf05cfb08989051cb4b6e50c707bb8..2e70a66ef5f4f061a9d86ad31308d57efe5d15d2 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 2c31e44297d1edfe592218231432d01fa9ec570e..8226b51d4f480c9afd43281cba17f2d99405ad4b 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 d38c47dcb4c877156ee6cfc06fd61174c03eb4c5..3384461b89e8e90813a526620be42e0386f56451 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 741b7aaad8e181b7d683db6b57126f1491aeccd6..2d722edff67509dada06602d398a88b328dfc822 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 0fab538df6d6be0c08f6314aa662938400ea8478..7eadf1a45518e9029922329e0bcc9c32b9071168 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 03a201c197a8816b13b2fef850001ee7f1f4605e..4579c3697641539f950dee0bdcb216bf2d05583c 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 f1a6cb46308c6543d55575139ffc354a9d60d170..012ddf03ae31683a9c1d49ab992a22b78eeb55ae 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 02a219d7e4166a9d4833f3739625d75efbb2aa2c..639c359fea437236d8d3271fb834406d28ffdb7e 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 0bde0a65b87e90997aaf3a6571faa08c3961cf62..197bd8f9b57f0d4c23a132fad5fd9551756e5155 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 0781e167ea02c56ab35f0d7b295b8a1b5d6fa674..2e5b041e1aadae574fb03151a0468fa465d7fea4 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 f222c1dcd1bc3b8385826a60d70ab6e318173f24..672221a7e5f70e1cd911dce870986d6f3a5b1d68 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 997ad331a420c8b1d5e3282da0895a8e8fa6d940..bed62c6b39e6ffafd64550df06f465f413a28f3e 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 418e9b0fba437a55b37201832011146ae5a3358b..bb3082d91e6433ec8417515a1a1e7f396c310552 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 58ae42026e1ffc13befb3e87079edb7200df3e9e..4659bed5d8d9ba814ee782137e11a52e763aa038 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 639e135dc97a5079abf72fbed6a07d2208525a1d..2930f45064d665f63e7dd3376a9598759f4b2c9b 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 313513a221dbb625bf69816b893f005ea091da92..7e4c4253ee30edeaf9e573a26063be965c7e2ba4 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 6b1c80785f3d8f3abcb0fc6a042ee729b64ae83b..9d802caf369a57c79a91a6928ac3b4725b3ea5c8 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 629fc292eae1c9f4b7c2e05bd86e2975082f45db..5267fa260848e8a9ba091835cc9cece3aded88b8 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 0000000000000000000000000000000000000000..a43e21ec51fa8fda4210f534ab3604651f9ccf9f --- /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 0000000000000000000000000000000000000000..8dad453accd1d95ab86cbd4b264677c16ad4b759 --- /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 0000000000000000000000000000000000000000..4aa253b754b682049c604225577b232f0e4fed13 --- /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 0000000000000000000000000000000000000000..6b85ec44a59a83a43a60fe49b3afdc49ba781e62 --- /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 0000000000000000000000000000000000000000..67127d9e40ed2b9d30fc76dfc02697bb534fae3b --- /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 0000000000000000000000000000000000000000..77bb3319c3dcdd4fb5531157b9af1339a49d70dc --- /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 0000000000000000000000000000000000000000..d24ad681e0e37bcfa543838e98be1eaae71ddfee --- /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 356168005c9a8eb819f5259a8ac3d63b199185b0..ecbac052a76b14b5753357ffc37455bc66f78996 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 20b5919139f815c4d02392334cdd08a68721347e..69e5e21a70a551e0a10bd0fe74e254807326b108 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 29f67c5e3624f10245200441339d1e7fa0570382..144882938ee4bcab503de29313e54bf4a2107a26 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 102cda8169739a217b1dc7dab1ae5a474d0fce4b..73f396671c8a6edcc96d300f4d0a4378801f401d 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 e842df957090695e7fbc0378bbad14af7b701b64..1d1f4e9fb7ce5fe277af331e639544dcf5a9e6f6 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 0c09258042c517cf8183176ce045a2e51472ffb4..6d3778b78eb93cb8492e9946b19d58f6f965edc5 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 ddb479a9323f82e8182f2b7dd3fa3419b43f8983..9e231d9848fd0154c87f12ad6a97e2ad1d1dbec2 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 cc5d20a0127edddc2e99b9721cc98fef765b8d19..c8b16696b0e163ee56c31e5eb43b8567606b2a49 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 3f4de8d5369e842e24ea1f256e47ec43b0da7556..7d475fae064cc393f60067e1f3d70f4911e237d4 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 3667807407111c3fc08935d782c63c542f4376af..1f824155355f5cc28edfd1e304c39b63f0ebaf9e 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 c066821c0483982db4074d92a13179fea7343d5c..f6b43713a15ad255a2e452d76ff594ca31fca95b 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 93bfbd24c34d9b68008caf40b1ba99b6cc5436e2..0d84183d9d1cf286b07d1299ea217a670752b40c 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 b2926a3369a2010f7c3560a152e1a426e8116469..9f500b49ab04f11d8aef091968b261a3877103bc 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 e4fb0a83fd6c8c6c3d40ca1fb3c7233c9e59fb5e..5138fdcc94081f7795941b19f248cf4878a4744e 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 e16042537f5c96f2577e525352968d4b8bf9bed5..2b45fae9469cc9121e03de7a3af72a425a0a0005 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 50ca6543c537c8c34c0511e1fd7b74059055e88f..a8c96d16ef29aced72d04e37e323759cd0bbb896 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 81eae36f82e9cadaea933611c45f058aedf1dfe0..1d076c145d4b52a14532b36e768cd3304e28d4d5 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 6419227f08f5af768dcd4b27155ebcee3dc24451..623bac0b9666998c0a80a837295eb3dcac633c6c 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 9a32c95968538c2052550e59451a03bfe96ba38b..f96496c4e0ea90d74f67394cbbb7f6106bc20140 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 71e2ba3c7c1b2655cd2893fe3bba57600cf6559e..45397d32cde9a6ed8bfe62e5b167c89e173a8396 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 83e0a9c62d350ee3747b08bde55629d2c944d3cb..7a238a8efa1a9b4f04fc752683ed957cbcc25870 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 1fb67c8f0179fe44001cfff72b7877568468ea44..daa2838195f1af384735ddb3d683fa8d8a8c8ebc 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 95a205f0f2b1c34b78f1d234b919a76f463e78a5..f3a9dd33fcac634c1d8b17ba04559a054815fbd1 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 01223ab176fb1cf8cb5e073f57b5650f33e18798..9657dad924d491bf8f0a5c263deafa966f1abcd1 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 10696075b8bb74a5f9528547a6503f242406d63b..25c64b18791c0d6284ec276866027e1318ceefc4 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 30027e83f3e681d1b53811defe32eb59f35a624a..8a2c77c26e44e3bac973c8523fd18385940b7492 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 5b7edf7b6cee0fb7bf9b424254a33c591155d5f9..28d58faddb63668793758d8ccca21cec44d0498f 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 8d2065cc8b75f7c5f85f4b24fd4a30fdf410949f..a66ad29b3879437c65daab26adf8a09e6283602e 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 cb551d68ea3420b4191a2ff22dabd257f811ccff..00229739bafff74340720baddb56fc75dda792f7 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 7d7fa69ff58a10b9219b518b8ee68e3d5691e086..12d5f311e6fefba6707e43b60e5510392e60ee9c 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 d601e545cba4bdb0266ef40cd3090fa4ef0464bb..f24b8bd7cd714a89420d33eab174f8b29b5e53ae 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 ca3e0cbabaac97ff2c44f5da0b86bfdcd0ac0b3f..17cb9dfe0ea4e1f4baa521edd3bc2e99824e9a01 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 386ced492766a6b7960ac4c6dc0d2cb2b40a82b7..f3320b4420652c66cac588b8c9ef3f19852581a4 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 97173fd90eab7fcf2c2fc54036c01b3a5ffd2cbf..ad06041ad937c50d5219ec381d2e53546d18c8ef 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 3f5cdac1bb5d7ef7a1e6743ddb7a7875736e62b0..180a7dc5fd0396ad62b3447172c9c191c90b87fe 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 eadb976e2aaf4e4fed032a64b1e40982f974525c..7a3326345e999a801cb55899e32e3262a1870f49 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 0ef4400ea3bc0c903750f23a667222e41be797df..24deef2d890376a5fcd739d6aceb2572307ba634 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 a0469968c547a64c5807fc603a628d7978d34883..fa1a7c795cbb7c1ea1f3365efcfa2f8374bbab2d 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 db48e7061ce4db182e5cade00780bf0682817404..2e3bf447818c8d001cecf9aae9167e1735cfd4fe 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 83f040a9abd8868423fba8efa4519248b8627f7e..a496509dd52a3e0b52dad09273e873819b4ae7a6 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 4059688067530b57930bc1546eb36787773222b6..7aae99288548747e18a0e659380fffc0bb7904f3 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 411bc200bac5b8212d8c242da744be95f848f046..3cd6e1fca2d6fe84d884bf709aeeaaa95cd3ffdb 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 5e0a749d31a75d8e7551c2e21d9e5ee3c4679a2b..667f3e7e7a0da23be4f25418c0dd7a0fe4b6bc91 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 fcd851cefd5d1d728f0d40331cbd9815bf19cd4c..9b7121e0980e3af8ae67a546e5049af55eda87c1 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 f005c08d651cbfd2a4b66a58ae415d8455ec920d..0288010da9fc546407dbd56893ba8c74d4c6f490 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 57692172831e57470429af28d3d7924d13901b78..315c32d423b1b5434ebc570b4a2cb3b8f0aa840b 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 e93dfdd53ea03ca89d9afe687047c9882a41bd28..ac4c135bafc0e1d575ee228e65ac0bc47204386c 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 6165224717a1b951e918a392b084ecf8cb086c1c..d75c455c33e436245fc17ce75ddc9833c5710a11 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 7076b1b66107fe644a5ad0d536d656a916262394..9e53be429bc1e29d8792547ba9c51162491bd3d8 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 206cc6a069c4d6352162024e0460558218cdeab9..9e6f095f5b01bcda5f708c9c2a4d57b94468c97b 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 b3d1b4dfd1d1cfd9ea4968a3bbf461b4a6822d42..e01dda730fe2c734d1b78705d96a62b0891fcdca 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 1ecc962ffe9447ff6b791f9316fafbafc54f92d6..ec74b6a17922a59f0e6772ff050a22142f5f6606 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 a6220489cfad570cbf7988f0e0bfc1b2ed472c57..4b614747edf3feea0b6410b997ca0c849f2f5745 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 8a389446653ca6587fd12997cfa05670dc61ca4f..04464dedaee6147f91be69af444b4678fc5bbaf3 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 b997e29d62385138217503303e8f1dfbba49e5b5..bb3a216345f9bdad5bc96306abcebdb2fd477a1a 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 0ddea13845ff9d6d2afb347dde8fc655b5a1aef6..c0d8a163a19a9b26895928c8d4f30ceb029c7672 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 010597cd41fdca05debfddb74b09d76f3fe8adcb..9a712431756ee0a28ca67c603f4186c4d4a3f201 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 04880717faa38bbe7ec1f73f6e3a308b00dd3c60..b1fdbfb02de9927d9907805d015191250099622c 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 1166172cef23b0f03855a109569914dbf548748e..3c84ad31eab1ccb52fe3c96b7ec0933c73e050e9 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 1d09ae62ec6affa56ed179017294c7b3fc324a0e..7032b0c04cd39450b5f492ac9d664348ab02947e 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 19fc15f9291b39982a624ff749a3e41a7a6cbde9..312fc99cf04f469f304193e9c8aa887e69c1c47d 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 3b63266435728971f8854e475d1e446b954f960c..789c0fa2e86f862826bed35929c34211ca31b5d2 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 86721f058eafd672ebe78b2a96e68996ff47162d..13cadc79522d8065b9fd9cad0535ac685508d8ae 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 441e5768247ab4d35fb8a7798b04c604cd9f1600..faa16952334b58ce2448744a91cb85026596bdb0 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 ebab708029af6540108273248fa2b4ccd8c8ba1a..19d31a65867ec5a3fb1e15385e90bfe8ed60c882 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 d9837c882547beaa5831bf6994e0e29601e819b3..ccee6c07e095c18f8ccd55b8e588ae35a3f5cfd3 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 005127bc16524bd719c130324bcea1ee1fa6a831..c9fdb99b125c637f9cc662dba75808515eab7932 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 38055a1b6931468aa00e6b5e7d3d29b7a0b198a5..fbab23991e659ba6c065e7baf3b081ac293b145c 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 03976f61ec9ef5c90364f19af575ba1632a3a06a..3a8234bf1961c8c37299654cd17377e2dc17325a 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 e6efdb2b1711e13a1e0d3078cfa203e2dfc70cfd..49540f0fd43e28a8d39c6a70e167ddd26c2b776f 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 dbf0ee6303aa44fcd43ea3480fb02dacf8e2b9a6..923335ca198095716ec6d4399bfc4ca33b2068a1 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 7b85cdec01c25ed032c3faedb45fc7c87537eea0..fbb561e0e03a87600bec92ebeba5880fd774a1a3 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 c8f0ec2b55d870e58f48d1222d6b7d4ebd2fc3fa..792b44808895df8ec1596f46657fe6535ae003e8 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 582bde1bb1d739330a9ccda12dadb22ac8372c8a..d6d7fcc1cbd0ff29900de555c19cb29651bf569f 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 2c76a8ceb7113f3657cccb8997be1628e7c9b33f..dd41c857136f44e9b6e80294b57eec2f4fb36831 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 c458a83b8e19f6927544803607292a23f2d3c6fb..bfc6832913121f45cb5e9644fff57fca90e0c166 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 a340ce260de2d1d9f12bdb2fc52efc66ab8330cf..f9df59d103663cc62ab4801522b1896a8dcec3cc 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 b9e4c472f657a7155762c8a8de742dc796093643..d92dae93c4f2fed480fd83252f9c90fdbb20066a 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 cb0f0c986eea6a4263d0bcdecf0229941f64b74a..21bc23f65ad65ec75a013e99d5ba69e98cbc0b99 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 743192cd6d50e449225082841cd003bfeb35bcaf..fc08368e318617fc2aecc14ceef9a3369e71dbae 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 58edfa8aaf0fb2338e256c87a358443a93b0fcd9..101b6afdde6ebd83b6576b29370afe1924f01add 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 02dbeba3806fa629855338d6b9f84b24393e8619..b9b2b9c84dee72a91b09772342cf10986e2497fa 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 0b3d4d0aef403025678c239b87afece462df9713..fc6cd6cda6e8e2846f4aee505087218b821e58b0 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 b7087e2ec1fba2295faf58a0a378f5377a5c697b..18d01bc0944cc71245f8e5213902b1648cad5e67 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 34187fbcf6e537086b2e799dd1884c16399d4b80..130a00c16ac0bb256f45f47153c065c8954faed9 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 045d557d81dc97a590ceb17ddc581c5ea84f4d0b..0fd8c5e4da602a73c3b9cee775d987496ba71f5b 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 08ee7f9b99aa790e8ed7952920a788d0ee75f56e..28abb813ae66782775ce48c0a7d9dbef3e4dc1a7 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 ef1d6c23dd64ac91675f01ce7294ae52b90313a1..104c9738bde8cfc5f81d6a0f544489a487837503 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 20acd925ca961fd6a424b2e8823224e3f5e93510..a8aaae2c8111b1e94d02342790f2397a6219c6bd 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 3357cb23bb67761b2680868a4e701c7263ff4684..6a0859a0612ade5390bb866d7d6f251b8a4cb66a 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 e98399754b1d4cf049ec235a13a50f0d35c8cfd4..e294787a818fc8fc7eb9da6cf943040bdb4d25e8 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 1b1cddefbcee7668d93a45e81416ff56a7117b13..17866f8b23d7f6e51b902cd91fa031c89625076d 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 5b57404c8fc9e1d9a2bd11bd15497d0590b0e3d9..142df0b033e55205f0adf8a90ab7781877cb5b73 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 637985953d63f8513c23b20f75674eb7dc64a5b9..e5d02c1037fbade0e9d22217b29a7aac668b1b05 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 85a1e687fc54975726118f4e9cf42be6bd0a54ed..dcbcb7b766bb2b417eeec81fa5ac89dacc1edf69 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 8aaabd2323ef7408b015ab7fe7361dcc58cc45dd..171a3080fb37d9f57833b9fe7c00366b95d4d8bd 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 a0376d2d7c6c78564ca33cdba593d3b0f3e4cff0..7a97dedbe84767c76c2c8f2f31c19001ed364d8e 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 b7ea704ed8efba990032156e7fc2847fbbcfc24e..9889150d0f5f55b89c0b33434f3b9b1cd763920c 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 f15fdb7ebb7098e080be956c8aba3e209fefb90e..4e0a141ecfe0a845bf800219ed4611230661fc77 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 bf2e6252ee5bf93aed26c7f7f6aa5edce08bc355..14239303cb5182a365ad8fe7249bb5b1ffe095f9 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 dbac4e84b3f3075a7b075db239c3a1453df2ce24..f192c91987ef266c91e6d589b82f941d95ead32b 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 f1780306f31509389dbb2cba35e10fe80833f263..9d7e8cb8f66406e8d4f7c0fdc83e4ecf25fac9e5 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 bd2e75ec5cb8d5d72ba638e3a6de9b328f8b5a36..40210a2936d1732a325274a47ce15c3f96683180 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 a0ef7f807a1e02b112919b0ef5357906b956febd..ebc9ec4a165b010371b2494b74b6eb307194e22a 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 45dfba5886baaaf31d077f70f9aa902a751084ae..c279b4c8f266ed635a16a3ef114e912508651008 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 b0231fbf64d8971b6a42b4a6c07949d0a06782c3..11a493305b8772f6611714f0365fceff1cf7f866 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 b0053454b1bac36655363c17ac99d80264da474a..dac7e428661c910f4d1d7c5af0c2a78fdd6636cc 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 cbc67245acc39551d79abff44acfd7a1fb308bc5..2edbf0802a79df5c0b3138b9ce36cf998a05aa27 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 365013bbe90a7ad631356a72f15b926110683f4d..4d456366775a950d2bbce2ef21f7e01ddb04cea3 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 d9892e7b4d248561cf8c463eae7d9df8bbd178ef..804df4480d67bee8018839cb066fd1a77875e536 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 6625a98a5bfeca723cbe9fa83889df8c87a80022..61d71141560526a6d7224d62b7643b6b36f86e30 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 03622bf9980ce1d938982a38142f4d6870d533b2..f8806a540d9377a2180d35fe359e140a6dc37b34 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 21256bc3e75456d90fb06ce6547d6ad45c702ee4..2d4c3aa33f993d0b4ced241350cd24e3971ca2bc 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 7d2691884a90de70e23637204f03a4d33e623189..0f86551ad9294bb4397e5df1bb6552488d845fa9 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 e4281dbb801f1ea33cbd4dd6422ff3b209676c6f..ac59136b8f0f3913b6edc536f2765ab46642a9c1 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 67aa2a92e6e362fb85b472668bf13dd74180c41c..8e863a81bb67785a138b16ecc35f1ad67872de01 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 75e952914b0cf6a00badb71dacc641ac8fcb77d0..44d6e9051d4739cd96db7c775da889137cab36da 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 8250591b7ea1d3ea302bdf3f8f60dafcaa28e5dd..1c01b0c22240c68a69bb2c34751a7d651ffedcc2 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 eef56ed13cebf8f9df6facb2acfcf6a132c8b39c..fe1409d128e7bfe5c0289f8203f1dd0481a6882d 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 eed4a381687b587a76358d0a0714d6515e539956..dfeea76b0e7e8a572172ee0390b321516658cea1 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 499faebcc26d469d67e29cabcc91a12d1918d017..5750aaf4988d9b0ebd5408266495d348336fcda1 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 f860c7d84915bbdae692cb3362e2b1996b79def1..ae91332865709ecb6481653d9589cea61a7a7497 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 f1bb9285876cbb1d5cf64388c6f9a760825b30fa..52103f5af4d6f469d17bfbc5eade9c3f8e86ae14 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 5e8a8c2ef1873a0504de4128c01f2c79387b1859..01651ce74bd9d7b27a61462e9c90af0ed28216a7 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 345ed0722e535c5ce215d1aec0d396e92621d9f1..d40c1666517960dbcced0201b8f929227e142f30 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 d50e934bd4cf0cc9f6b0ee15f80e90eed745c634..984fc760b9040b473bd1dbac6970a01820bcfaf3 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 ff5648e21f653e88b41c896bccb61c3f22b83f99..70901c469f72ec1843fe6d5d3e8fb6697a86ccb8 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 ba60534cd2b0384990249a87f8aec53bd40bb5b7..b4f9023e3ea62cfa5a886f161245b3c2eac8186e 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 e84995ff1348756f8fd200bf3234c8d8deaa3ff0..19f6c8d338cc952655429dfbf212f535b8cc7e19 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 cf41d8af314cea47f9aead6054701352ebf84a85..78c9bef2813d1965c853b51aab1a27d8d4e6ac20 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 ecb659b028fa7bd3245cb489b315babd5a9c242b..5cfa269da3683a6c57c614e083a012e400ec3501 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 08e9f2d0bbbe70b689f0a465843944f360c4fe74..a6ebcaac69bc7cdcc5a1c42c811a5ffb1eb02f94 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 c74300cfd0b1e3a1674d732cc3cbd5b4c3925751..d433fe404669b554f919e4ebbc14d78180977315 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 ae428cf189e12db1a11f29c0507b97b58e8cef49..d890533cc5a02cc663f20aac32fd02f4aee28c5c 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 1a6424933c255e1919e1bf7baf8ce075b61f2b44..4d432962bf038b5bb62ccf35bb0ae79e405a6258 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 3970efd197a981f2b599f970a744d80c1cf65b8a..268206e2a985ecc9898458e8992567005fbf61f9 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 5ea8b6490cdaf13db9be8e108e497951f7694039..7fad00fc4f2580a8ab72ef101579fc7a87373cc6 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 2acb642fcf6747c80f2386e3fa0f35220ec1e30d..982f89ff02bd884e04123e24fe72eda73e2e54b5 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 2504f1853b2942e513cb873b524fef66be77efe5..a17a7015c0141e3d8309c7ddce62f8bae9105888 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 8ece9f5787290c8ad022073f88237c7d5363053d..4cd1483c07c91b95557b98a22c521ffdcc0b1f04 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 ce8efde898805b6d625eff0d227c38feec00e54b..d390bdb27576249a4591c3688cb559b5c35fcf19 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 dfd0d15cc342394a094e50451a7d5790068838d8..ef3059e1f70433a11ef3b3963ccf003714e0e823 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 e9fb9762f138a6528ba01a27c9ebe0d921983f64..bb95b6736f3a7914f4c4b08d742d903324a116f9 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 1dde2dcd87f450422b247cbee7a1c1fbafac14fc..5358f1aa84606b6d6f1003f414bad860fbaa2713 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 fb158a25d3a142e03dd652b5309db44919b1c65e..3e40e86653513b1e023f4620b6af86d11441885e 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 647dd97b74447d3a1595fc377934e797540bb793..9a6e182ba76288d65d62b90bf37e88d12fb4da4c 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 ffeced000b05ecdad806d20634a7588fff714b04..9056fb18ec0b01cdc4cf9bf9c9523aad3d7f70f9 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 ed59f71e2e8eb9f6e066ba4343ab9c9ae0b60f7f..15f1a89badd9c4d50ad1090ede1a97456e00fee6 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 20d2c278d18ee13af0006672b67f786ed043e14f..d1e388968e4b9b3905515e639e7d8d640c7af487 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 58ca2962fcbdcafc356ec26572489245d5600b0a..deb66eb454998c56ac27c63884b31f0d4d09901c 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 533433e262dc2157d7a6cd71426fd91e119a5396..e97eefa75d8eb7470044a77cdfbbb15d07caf478 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 db06980ae36acf47e5f4c0a8496733dd619aea1c..b56344622cf7a396a8ecc683d0d4bec18e253902 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 7858db2021b2df23627b21018c667f767e7b02f9..9d6ac90fc4e40906c8b2d6b9b15e76960bd89070 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 b6e4ba61cfb345a33a656ac436bfa74aadcac82e..9f89271e99eae9a0db86168ddefa7da1195a2608 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 78574a0b8bee0197387bc19d1b5c970d0e1a3ca6..cbbe667922c4dc308e7a1839bcfd73682bc2b055 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 e8d992f2af9d37485337342a4ae65c2148bc1de3..5cd10586d78e64439e970a49455923d381ff34aa 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 eab129c9f948a29febc9b9134a0e025bab04529e..f408596b9ac0288d99adc0af878d9a99a4d99f35 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 2ea8be29c31b62fbe03ac5cba4d25b3c865060e6..180688e704dde346bec76be834880b31b05f720d 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 9f994ad39c5cb985d60fe2482fa07fdd0b9bb142..3d91f7c52605efd46a7f7f2017e3f591618b1330 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 84e995efd08ca01d9f3964433acd3c6e4679274e..8c3a9f0628771459d7963bd8546b29215b36f10e 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 e94e7b50d4ba411151bd64e74f5246e4e6aa383c..b1c30117662c77dd58ddb62540c5d3f7baa13d2a 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 690966efdca7c0f8bd8d231a5bfa06c54a2da575..a3b580b54628ee5f9618f4d529fb85e9f6d23023 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 b6c8007c573f83a73a81509559c13c9dc4dc8d0a..ca15d0d451dcdbc420f578b28097152b35c20df8 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 12e480784c44844076a93f99515ae2faaaa248f1..26b61ff71a532c5aee6bd07908b742052540ec67 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 600ab4262cd55585804e45e99f8c26cfef6b8f5c..69f2e3949f082450f8719349896023a67a3c49bf 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 1860e5e2b3f02a2527ae2f4c3758738a62b68191..69697ef98544868e49cff8900eee423e06b81762 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 ac866a4cf9e3e1a5ecc5f63ec64ccad94fb80e20..75645a487cf61613bf5445123cbd0a0ea374fca2 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 a866dbc0934e876525e8c50abbf96b8486d6727a..0e1d6c1957dc7d1895581b6ebf63ea2a05026834 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 d273ffbf6d7b460a672d7e62c3b1f060837a5af6..73a3f8641e59274b10436f6213a063e7c0ccedeb 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 32bf8ca555949154d07369de761803854fd8a694..7241615f5ee7a66f35623725c9a750256e49a45b 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 802665d1b91ebd611b9f25f7ea96698c667b1cc9..5340d9b17eb75f4ed07087c466730610d7a58a4c 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 b6f78f8fcb69184d841a4d1dea1bd0e649b2c5c8..8263b11b4222820a8b7c0a52d7e7317808f6ccf0 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 a64997e91c76b43440d773c06ef23f3bc79233e0..da5f5fc1114bf432b05bfac36209c675b672e0f6 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 18952c139bf7b7da5583dcf92d7f8043202ebca2..fac7f94bf3cefd8a61044ae10f806a4f069f46c9 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 3c44f945f35141177f25d6f7fefe15fbb2688abb..d94d4fe5b49c118119c91725041e624f065576a2 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 fd4fd48f708c1757720e181fbe629b3fca035a95..10eb9315d75ad8bb7460997ba93917ab8fc5347a 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 10587a981b1aa0d8f35d7a57d953629c3b25ae07..f97f4a43c0e24ee8ef621abeee2e0f13471ea861 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 61efdb88b30b1ef10dfa44ad1a73b5f3057659f6..9dcc599125038279c22e641bc10f09ac69cf256e 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 7239424fb32b7ea8170c09c166f5eddb3c809ea7..e8b270fad4a147067dac6d3b5f4348db63562c4d 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 54c893a2686a9021d2a6bcc83283af49752ab333..12cbfd20fc920d014d186391add5c182569f1694 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 81183d98c4aaa9b4f97bfc1a340b5728e1ef743c..348bceed39a8d8093ddfff8f01e5f47af2aa1f7d 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 8a2228f22d68e832123343187768aef7eb000db0..cd32df336a1146d1581eb42a6efa8488a53fdac3 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 452d546cfa1229b399d07b7becea0a487b2ba96f..649f07ecea6b86c004315b0590a80159cae312a0 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 0000000000000000000000000000000000000000..89abe0543d09e2b62574caf0153a00507766f1d0 --- /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 0000000000000000000000000000000000000000..eb3d8f3c4b69d739b3cab8f8910297d8a3cd7d2f --- /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 0000000000000000000000000000000000000000..eec5da895e7763961941c0215c52c76644a3054f --- /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 0000000000000000000000000000000000000000..4ce516da37b769d3e7f66b317009760c768c30d7 --- /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 0000000000000000000000000000000000000000..c8860d0d1bcba7fc2741aebbc7638c1b679fea38 --- /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 0000000000000000000000000000000000000000..cf905b64a6246963def0369b81a98cf3f923fbd8 --- /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 0000000000000000000000000000000000000000..32dbb02922b95b09a9156a7f9c4f481df2130bb4 --- /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 0000000000000000000000000000000000000000..f7a50a2f27391fdb088fd5e53c8ce2a7d60224fa --- /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 0000000000000000000000000000000000000000..b615695784e100ae8ef53dd79c440ee995f17474 --- /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 0000000000000000000000000000000000000000..966029b1dede0f6e96094d81ff4f0c2dc765fc5c --- /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 0000000000000000000000000000000000000000..3646f2c9b8161fd32f311ce236236b84768ad305 --- /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 0000000000000000000000000000000000000000..c8fc135c9482d3ae75e6c896d114de531f17dfe3 --- /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 0000000000000000000000000000000000000000..e2ac4b49194fad94d91a1415ed67b6ed1c855b71 --- /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 0000000000000000000000000000000000000000..f2e22fd68e392bef745d358c2f18d934309e5309 --- /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 0000000000000000000000000000000000000000..ed10683ed159039ed8568d1548d033ba913a25b9 --- /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 0000000000000000000000000000000000000000..d6e781dd9448936da73e9dee7e0259d015529238 --- /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 0000000000000000000000000000000000000000..31f6abc8e72bba29b49c2024086b7f83342b921a --- /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 0000000000000000000000000000000000000000..96c391e0b07f27c2e2990c7e3cf51cd9b3ad3a61 --- /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 0000000000000000000000000000000000000000..6f02560562b654b260b917e7ea1468329ec6c858 --- /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 0000000000000000000000000000000000000000..7b171ed8addc7efdf60ffaac38c002bc41d14c59 --- /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 0000000000000000000000000000000000000000..a266cc86b1fde52c63b3b767f1772ef99e89f24f --- /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 0000000000000000000000000000000000000000..07dda9afc6ca1e49df6358815aaba6da907a8277 --- /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 0000000000000000000000000000000000000000..1840db05963659583090ae9f50e3512ec7434339 --- /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 0000000000000000000000000000000000000000..b065d162ed1f59dc195bf35754977662b5e9bcf9 --- /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 0000000000000000000000000000000000000000..4040e2859d450b4411e4513ef80b29b4270929c7 --- /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 0000000000000000000000000000000000000000..448cb3844175f2ed3e5dc8c6a9aebfeef882ed60 --- /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 0000000000000000000000000000000000000000..8d5458be94db40f5e87d378cec9f121c5a7e0738 --- /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 0000000000000000000000000000000000000000..bfe82e3c978ce8b1f331544d11ed6643e1320760 --- /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 0000000000000000000000000000000000000000..0515a0fbc013023ab233c1cecf9302e16e69fd90 --- /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 0000000000000000000000000000000000000000..949a9dbf0d38f3241d2071628b5c447f8c42f922 --- /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 0000000000000000000000000000000000000000..23b38c2c4fe974ad4cd668734a384e9df395ed4f --- /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 0000000000000000000000000000000000000000..d7555df0aac2726caf55ef489c3466d394ce2d73 --- /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 0000000000000000000000000000000000000000..8134beda223b011942a006ef0ec84f77ac1aab49 --- /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 0000000000000000000000000000000000000000..f95a261c7ca86dd17a127e1d324577dec0e61629 --- /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 0000000000000000000000000000000000000000..d40f3589ce6dcc142dd825665b409b20508ec1e3 --- /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 0000000000000000000000000000000000000000..044fd930a0ea368a3273bbfde53386904ac632c4 --- /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 0000000000000000000000000000000000000000..50cd7c40413ee7d8cbfd0e9221f427022d326d80 --- /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 0000000000000000000000000000000000000000..29fbab4c379c69639933c3959595c3ee18a608d3 --- /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 0000000000000000000000000000000000000000..32537bccfe778b385181788b5353865677d43eaa --- /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 0000000000000000000000000000000000000000..04dde370c07791d289f9a168eeb1bec197c46ef8 --- /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 0000000000000000000000000000000000000000..479381759203ac027615b195ea83f600188d6b2d --- /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 0000000000000000000000000000000000000000..e038246b608b96995a399d874041616dea5ab4de --- /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 0000000000000000000000000000000000000000..0be377de28e8bb3a7efd43c2b090c25e0a48cfe3 --- /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 0000000000000000000000000000000000000000..5334bb127ba7f801c5cc58641dde1b030ecb3879 --- /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 0000000000000000000000000000000000000000..ca8eacda0820fcd571937f001f5924b10ae76e43 --- /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 0000000000000000000000000000000000000000..7a1d5ef0232093270e791047901dded4e0dd5038 --- /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 0000000000000000000000000000000000000000..54ead7b13e546a27b549abb9d5025e1186846502 --- /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 0000000000000000000000000000000000000000..9ad66c4866ead48686b9773d8564c78d763b5f71 --- /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 0000000000000000000000000000000000000000..a9a894a79a73ee81a04e10d1c1dd88c5fcab49f5 --- /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 0000000000000000000000000000000000000000..012e334d01a55a47966b285b141f95ae7217f86b --- /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 0000000000000000000000000000000000000000..ff6d0778f70e3f370b606b85fd62307a8023cff7 --- /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 0000000000000000000000000000000000000000..6b7fb354bc9a8cc2d493dd68f0479b0ef467da09 --- /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 0000000000000000000000000000000000000000..8babd983f754617d9a6ddae800695e55de628971 --- /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 0000000000000000000000000000000000000000..7c4b91fa9cacc548b2494b9f211cd6da6a762043 --- /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 0000000000000000000000000000000000000000..1831291124a9bd489c56196582c5ddfba92359b5 --- /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 289315160b2a14956e8f9686c72608c1bbd1550c..bbb0ba9a181186659a7df5b89dbb1f885ddd55c8 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 aeb0c12f4eaa7c76f8137bf6add36f784a2487ab..90ca72e05f89b4bfbcac2e568fb1e14f9fbcc8ad 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 5d487fafed785c0b2b752f4a4a6b90b314473226..6e0ed2c1e839c1011ca7144035e75b05812ed69b 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 a5b255f3b7540fdbf3e8a864d9895a6dfc8eebdd..e7e20ee24566ce87d9fbf212cb5e37338c58f4c0 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 8f119bf88dad28110d03c3b0f6f271a71a4a2e6d..39a2b082e1b3257fdd744815489d94121ab2642d 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 a364fe3b8586f23ed4ecb20bc58f500c0471ba77..09ffe91fa31304db0a5779160e2a9109b8cd5934 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 c822ed57e45095c7aed81dc54eb019f4919f6b80..d1a4337ae0ac04ddda9b96ec0f4d8eb030fa3e7c 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 c87cc01af12f861d6a5646bf4892cd375bcd0aef..915eb42a869572668d51eb105df532da83e73079 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 edcee71b24e14102d3ad19199e25ce82ddb497d8..7b5d7cd4105edc978e85af5a61c6fc37a5dd5204 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 22732006ff48f22fceffec883026eb3798e050fa..b1809aaf763ffec0970c12ee7d3877f47471b809 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 00d79eed2604fec4263007060862064878139978..39dfd1c800803210cd4520d0ca311679ccdd5f9f 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 623aa913ed7954e77d3bc7a4a589779ba723c2d1..066708d2c9a2e311d255c2c6d324ffb976cf02fe 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 9f292fe98f4c8aa82ad38de5398df642909432dc..be7343cd11dd77c1989d5cfb2b9e552b9fe0a084 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 d40b651b62b6342a018ec4242fe9a155de7d04b5..4d69c516c47399906251e6cc6dc300391f2f5668 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 d7d3084abef3bc115aa067da0e778fc2ef1cac4b..b6e9f95b86b55bc18608f2bf40ec05c2c9013ba8 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 1cacdaefcae22e2877b1bc78bea61e3d022049df..de0f5d718ed62d0cfdae469d2c1b732b00c5df67 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 bbdf4b52d5ff0260de6fdd07c30b8921ad046cfe..98122196fda0c84794cdb25130d65b2932771121 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 672fd11a234380a9ba0d18d3fd73d0144508ff98..7e17d3704c43c51b50f02462e460eafa2c37cdec 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 909c453285f1010401188fb5100e71e9b11a946a..43e3acf73fc3df72041fe72dfe8ab3d026451ede 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 9fad2759547102b103970e8423740acfe4a84caa..978631acd3fe8746f11ffbdd5faea27843c1d45b 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 84aed54ab03ee0556e686097422ac52469c998de..f30bd1291cf90acd8cbd7f30281782ee6e4dd976 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 24e2aa2d18db218db78572bc40043816e8e7c026..ccd813f8a4a6df51479e3eaf4162fefc00211306 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 55f9dda26411f85eecdc91bbf99bdf9e28f5c5e3..38a9133517a17c192436a599d57add21fbc4a677 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 31727510846a7891e32d34fcec1b29563160bca4..fa12b8cff436ea9a2a36073bc1bec37fea6400db 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 eaa93adfd16feb7e1db95cfb3f8e91b0f9f1aa3d..58e94c3d1afbe5875870d05256f71b2045d81698 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 cfb774cfb54571f2d5c81296e3fcb256117e1bc8..78de7dbb6a5714aa833ea30675b226f40c262b45 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 57a56cf1a397fd6d9da565eac41e764cfd1f642e..5f68338df4c4194d66a2588379f83cf02298962d 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 5e5deddec179edf09444e5f77488aa8924adcdbe..7c963cef11b54dc091aeed7fa4ee3d8547458913 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 eb821246779f21eeb89526e56f1fd4cf4afb350d..cba945f237971a860cef2c2278d1440837c5cb86 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 18746a345a2acf2b1368f7d4c7c107ab06cfea60..c4519f9f3a0ffb91cdcd5ab7fbe6a3c47f3acd66 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 bffc4c8cd300075db9e5bc857f6287aed88f7148..1a56e6f81915d6d7b09365e3b4be6ddd9d3971bd 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 d2422e01aa2dd5ef18128bcca0d972b5b99c4f02..c65fdf0e309743e11f481ae14a32af687ae19bf7 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 47fbb99fcb7af1c7c7f0e31fa213fa6cc0aa4030..a0a67f24db5649b2966e54ca5ebe63ac5dfcf284 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 c9b1892f39cee28e68cc10111004b55b34b20602..da4fd67e15664ad953f1f76d556254a99930967a 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 65eb1c398f0f93e0179f6e2594aea45d6ee49b53..a426b099a90ff466bc28bbbcc84f47e9ecda66f5 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 2ad65bc36a2f31e128d5e84a763f3bafbd668f77..606ed4845e070cd1ad5316ce4a79c592a6fb8a30 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 491fa65720e17c8c9fdaeef4b29aaa8e1587d589..53f2fed5d89cf257b2f9584fbcb9bee39cb094bb 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 fc53a27c6947e53390ee30aabf6a09d5a7b145a5..5d93faf1af0813027851f48ae46332a21d4cdac0 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 21002735309e217a93f1ce855f5a06aef60d3209..8621ea8a9c5143076ee0425da847c8f1663c51c7 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 18a23237ffd78c027474c82d27df6b2f2cd46b65..8a7627d7e97a7923aa90c3d6a58739293be4c10b 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 2103d70e8c70d1ba41e048004234bff9958b12d6..3384aaf3a219dc1d6c186e6f2fadf8895e42b022 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 683e27497f5f8aaba8bd374e45fc7e96d158df0c..21aa8fd16259c0f2e12277ebe0761cb8928d7a01 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 5a91eca6248fea4858642b04511a415a39bff015..33797023d768e90860f4706f64d1cfc0db1a8aae 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 b25539ae9419499edd997ee26e7a3ca8226e28f9..54e733dac2f59813209145207a82435b178fc065 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 af31d70b6f92a1de4af5599d93733f3087db732b..8e7aa36ac281a853dd9c5000d268ab7d373aefce 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 7c38ddb69fe65294caa43d43fffbd352533446b1..7e542ad15d70c1810da281cbcb7f3ec109faba94 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 df2a1439f3e016d0364671438cbcfce5febb6d3e..0b7410b2ec3fa803fa910277f9808033102b78b3 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 df67beb8519a752b19d5b2852f6305b06d11746a..c7e587227cdf1cf497498fd56d6324745155c3d9 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 0a6e80876d42dbead4cafe4f661187f2606a6d1f..30e9dff89c1004495209e98192363f6ff8f08f9b 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 df05f1a04eab16dd63dd6a20a8de9b999c0e632f..1372a1504f645c221d5aa942b3a2d4775761b852 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 c10ba970e7947ed6550a099b0ec4883badfd52e0..964f94278ccb96b8e2e1df9e85b1bc8ce44e8ae3 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 e1cfe534eaa37f173b2cc059656046c90120c8ec..c6a33630b837e3e90588dd4f8c860f27b4639ec2 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 7a86dad90644fe2ce5137ba2363671d1a1e6ad24..5a39aa1ba18ea3641de0cd0fdeb414508a0e69c7 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 0000000000000000000000000000000000000000..f37ea615660f316aded030424dbb4eaed5679fe2 --- /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 0000000000000000000000000000000000000000..babb9d99f29763fc6c0004ae6946e6da3986afec --- /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 0000000000000000000000000000000000000000..e579ea6fefcd0cbf6dba01ab81628c2ae59e1039 --- /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 0000000000000000000000000000000000000000..f31611790a7e4124caac4f1fa132352ebf7d4668 --- /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 0000000000000000000000000000000000000000..d604b13d53b3a3f857bc945e7a9df7ccc13193d5 --- /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 0000000000000000000000000000000000000000..9dfba570edd23b33f2f5148c16d75b357f68dd92 --- /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 0000000000000000000000000000000000000000..cb7f085d5823f024601d594a96c8d5858139d08c --- /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 0000000000000000000000000000000000000000..04a751a76a1f3ac467b2b566580a9c6ecf6c4d1c --- /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 0000000000000000000000000000000000000000..285f84f3eef9d97252d4db3c8335d421a48e053f --- /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 7d7bebae35e7dff7bd817320df16b3d0860dc5bd..d8e6ddeede76381578ec0764560440d07eb057b7 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 12eb4042c55a50bd3d327927b5097e633afdd427..801e8a5ed3a1f7db4341008a6e1794b19fbee142 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 0c087f026f6e6828bf047f57786d0a94e76ab1fd..93e0b3cd18ffc7fa0793fedf95b7c352719d9c0e 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 9ca5313ea095893659e7b5858cdbf5cfb2804068..7db43f296e1cda9babbf18a490b33cb67f970e20 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 24abda23bbc785cb4c34283c336debdeb15a46df..1ed484fbc61bf2a4b95ee0791445d22147887017 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 361eea006a27b341a6e84df69033bc14b7e7e01f..04853a63b7074465fd445c117a97158faebdfd86 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 a6bb3eeb541f81495ac17eaa7e43aea569dcab71..430d7951681e630badb975c4e50b69fef8410c26 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 cce72f9da22ff7f5c772636aefe1b25f4aebef50..ef79c63cd5e8523f660bbc740bdc598d22172a5d 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 e231ed77163180f901c3bd155b95f5b9a0a7c36b..134f5a8d6ce6ba0c150f39d5ecf1ecf08fbfce7b 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 dffeb4bc9cecdc0570a3d79d0b5a17010455ead0..2e6a20c3a9fd4afcfe5037c80448aae6d74d06ab 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 4a3e388b2455836f3a28d107b409baa68f984f7c..5e5f3e460e0c3823521b9c6d986842891212d2cc 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 4afa2d59d1586bc200296e377f0ec7552605bde6..6d0da61635fd24244dff33f5a90e9846746955a4 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 c895adcb5486bbe81a79fd2e81bdd754b660cc76..d2f37882e6613b7bc0543f8d83f9401f6d2c21f3 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 63c3dc8ac1dd372aa790b85e7f27a1f1c732012e..7446e8785eb865fc49dde60c456316d809bf255c 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 e6956b7254cb87dc6bc88ae88d3e3a2ba99f5c9e..9254169f6d37b098fc2b8f64d7afc4029602d9d4 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 0000000000000000000000000000000000000000..6dbe6e69591794367cb676954943a5e1bc658654 --- /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 79d535686f435cf0d9b0d11818ee83ac22e71cf2..d68f047e177d5e3a58b24bab60e17b3069af4641 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 6a826d752f81fdf37cabaae4739e4ba677494df2..a5f74eceab3a7b493963b9277f40778c199e801f 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 f25c31eb56aef4cebe13e2f154ec09280ee0fba1..444fc798962e2061925802dae47421b4f64176ec 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 c8859ca987ee2297069434da4dd5f979dd869c2c..ac8daadd27c207711b3045a5abc43bcf66de06df 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 264441d26d903e8d7cac536c0b8e2ae0e8d3ef4d..a8901ac4bf03fa1ab8933e9cf7bc1301ac5ab2e4 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 d3d19bf9966332aced2aa4ff23a40b1cc68574f6..d693cf8b54f17f3a1a9c89d10d6036058d7718d6 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 f0c18f8a5c5514b64070ff2f62b9daadb0fec1ba..5842b7b42f08d13ac40788422b1705665e58b625 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 4408d7ca2da9a50d66f3f64c6f26f23b19126481..77bfcb5277e3efc77e57136c0fa0d4f038fcf20f 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 ee07f4b7646f7c741c7aefefe6af7945eda1cf6b..4ec13a2138de03ac98b0e4cf0c56861ca3c5b1ba 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 23f519a0f17fed8be3a02b70152bf71abd852991..165e4d96e16455844f4aa351bbc0ce911eecac55 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 f94a8f73b003f4271aa0f92b820335c672b9b1f8..e6d575040796771d1314543019d541f0d9661879 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 12a2dca9a6bd0630641f2443ae2e8a718700bd9c..4883d245b216f6d4f08a9a6dfb2e68f56c4a9429 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 437c5b8157a3a54e2544e854d40f3c25d5d44467..aa215dde7bc1eb8276ef8edc89bc774f86853be2 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 f1a1f97633fb8a3562a875b4412c56a61038d595..d88bb11d7040528378b22f095c53587389ca3535 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 62d82818768e5dd70312598b97c3beec5fecf87d..268ec66222f1b6b921a370555c1d65727a84d453 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 f8931aeaa165ebe63d213d7bd5f79112634a9afd..3f9745dbce9fc9f66cae8d950f3d769adda96881 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 87fcdade35915a1cfd7bd174366a94fb79964f9c..5ade0edc1c9939c8fae8d69bc0e40c72cbd64423 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 0000000000000000000000000000000000000000..8ddac2495fdf503061ce38716b71c8b4590080dc --- /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 0000000000000000000000000000000000000000..4d3ce857521d518674f911b61f8ef8682ca8a910 --- /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 0000000000000000000000000000000000000000..a3a2a3181a154b0ae0ca5150e9f16f10295a1452 --- /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 0000000000000000000000000000000000000000..4dcd0d58ae3f72f0609315b419cd470b404f59a1 --- /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 0000000000000000000000000000000000000000..dc4f87beb5f9e98656f90116049bbdc8d94d52f4 --- /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 0000000000000000000000000000000000000000..3c2ed3249155ed293e80070e5d2e9b4ad3597fe0 --- /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 0000000000000000000000000000000000000000..db56594916ec3459e1e96617074c7901d200d478 --- /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 0000000000000000000000000000000000000000..800ba3a19c905893df254c1c3bd32813eef87908 --- /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 0000000000000000000000000000000000000000..eb392c75a8aef6ee2d7a5f7c01869348908dd488 --- /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 0000000000000000000000000000000000000000..aa863272c89581a081c7fbc8cbc27c0f5370c13a --- /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 0000000000000000000000000000000000000000..008837ae6b8ffaec5a97aa067930e5edf2999690 --- /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 0000000000000000000000000000000000000000..804ecf7926aa94c5abcdddf1754bf3216133629c --- /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 0000000000000000000000000000000000000000..d00a24e255d69a0208f7b1095fead05754b6bed6 --- /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 0000000000000000000000000000000000000000..c23b0653549f5a6811eee97e020ccd16caf64f9a --- /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 0000000000000000000000000000000000000000..ef73fc0c2a7e0ee546102839f350e51cb59d4183 --- /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 0000000000000000000000000000000000000000..20e88f73967367229c4eb4d3410bc3308d81e7b2 --- /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 0000000000000000000000000000000000000000..57a5ebac15591bfe55ad656952f6ae5965074f1f --- /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 0000000000000000000000000000000000000000..2d9d2faa9c014b53fbe99713cb15fccbc73643d0 --- /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 0000000000000000000000000000000000000000..1ea62b4f78ae6fd87899176ca4d9ebf13afcb72e --- /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 0000000000000000000000000000000000000000..6a3087553dc853dc883fb1136a7a259e6a0a65db --- /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 0000000000000000000000000000000000000000..15c9a0925cd1893d23257aec687d8de8fc389c35 --- /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 0000000000000000000000000000000000000000..d299d35ca1685350fb32acc9958594e032f3c3d5 --- /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 0000000000000000000000000000000000000000..36b85a820183c481a073f7a10ea7c934c8781cb0 --- /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 0000000000000000000000000000000000000000..fc8c938544e046f3c62d8d6d05fc4dca8fb79b86 --- /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 0000000000000000000000000000000000000000..2fdb50cf064750405f51fe0c0c338709a98fbed9 --- /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 0000000000000000000000000000000000000000..4723f9fa0594acf01c101a7ed64c6703631f0a94 --- /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 0000000000000000000000000000000000000000..aa6130f291dc2583dc4c8411cb2c03dbe1dbe4e2 --- /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 0000000000000000000000000000000000000000..7bfeafb5e49a297488c5dac3e9df6f7b8e9025b1 --- /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 0000000000000000000000000000000000000000..afacdf245831bc2d5ea84bf4052b0b0cd0fd66ee --- /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 0000000000000000000000000000000000000000..f04394e6f28aeab9fde3c49ebf7db89fd8965efc --- /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 0000000000000000000000000000000000000000..63c230da37c8ddb0744d6ea796412471eff9a545 --- /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 0000000000000000000000000000000000000000..2dc81dfce447aec54ab8848b9405e7df019c37f1 --- /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 0000000000000000000000000000000000000000..327eb9ddbb8abc7429ddefe3918b94c77c6396d0 --- /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 0000000000000000000000000000000000000000..97d77de3472c97450651b2cd84a065620dedf548 --- /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 0000000000000000000000000000000000000000..8be92f9324e778f0e6a36a57104ab60cbd0bab33 --- /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 0000000000000000000000000000000000000000..41f7259344921089c07ce535e20390436845e6e4 --- /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 0000000000000000000000000000000000000000..0a1c825c68191ac1e2298d3c9e453156cb3ca0c7 --- /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 0000000000000000000000000000000000000000..f01aced208a084af61e56b1226d71821a8b59fe4 --- /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 0000000000000000000000000000000000000000..4af3b69eeacc0ea7e29bb72d7d4568326b0bd2e1 --- /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 0000000000000000000000000000000000000000..e3dc88ca3259b035b6bd69ea57f4847d4d076ed4 --- /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 0000000000000000000000000000000000000000..8f4ba1950a5d5e7dd5004c9ae8ba13a0aa90b43e --- /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 0000000000000000000000000000000000000000..f37bfa9e2ec1a7456146e15b77ffde1606be4049 --- /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 0000000000000000000000000000000000000000..7aef8f1adefc50ccda768154a15ede1849b89c64 --- /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 0000000000000000000000000000000000000000..0a966ddc9522624c52247a3def76adce6b0d0e08 --- /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 0000000000000000000000000000000000000000..b27454657c17c83039af42f8e557cefd1139ba0f --- /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 0000000000000000000000000000000000000000..c8eaf68cc8193deab3838359603668f8a46038d1 --- /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 0000000000000000000000000000000000000000..b58e97bfbfbd390e00e06b73a146edaf390ab9e2 --- /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 0000000000000000000000000000000000000000..7a920ba15095650bb1dcd19e3c6ae5f04f049cb7 --- /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 0000000000000000000000000000000000000000..72b794ea2fd79caddcf70f0d4f48b7fa29fee725 --- /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 0000000000000000000000000000000000000000..24b434fccd1d51cb9d30e6fad79ab424d96dd77e --- /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 0000000000000000000000000000000000000000..00a43a1889420bbb7d4415073889efb06c2ba259 --- /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 0000000000000000000000000000000000000000..765269c531277ea038e1b894427bb98a424c513a --- /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 0000000000000000000000000000000000000000..195fd7dcb41bc347830a80c393b58bb2fe765081 --- /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 0000000000000000000000000000000000000000..c04fc6ece933da2d25f5418376a96e4206a3b2fe --- /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 0000000000000000000000000000000000000000..71c8f94f62aca61d43d6746e1a530b6daa224b5c --- /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 0000000000000000000000000000000000000000..1ad34dda4530cb4554ad89ebc82563557f211271 --- /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 0000000000000000000000000000000000000000..c1ccdbde2e55f77850b37b1fdeefe387dbb929d1 --- /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 0000000000000000000000000000000000000000..d28190926d6ff947a46f3a00e1db524bd42db105 --- /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 0000000000000000000000000000000000000000..f7740d338d6df1776ee381f5f2a482ce7c53db02 --- /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 0000000000000000000000000000000000000000..8bfc69f4f57016392e68d42e00af1746164cc9ce --- /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 0000000000000000000000000000000000000000..dc74154c6d0b118b295530cc26e0f11829550327 --- /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 0000000000000000000000000000000000000000..5d813c3983bcdf5abbc591db940c9cce8c23f3e8 --- /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 0000000000000000000000000000000000000000..4f3c2a5c4ba21bf8efb0e7fcb5a4619f7053c434 --- /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 0000000000000000000000000000000000000000..0bde70ae9d584f6b99f975441ec38c179c8bf135 --- /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 0000000000000000000000000000000000000000..d9fa2925958c8744e2b60e7131beaa38432c4778 --- /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 0000000000000000000000000000000000000000..9e89036090a83c27f604c417a0801491db7c1d1e --- /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 0000000000000000000000000000000000000000..40c418a76c12f4a904516863179bceae10f7d40e --- /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 0000000000000000000000000000000000000000..baf3735ab1525e77ab0c47f3008d6b9b869758d5 --- /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 0000000000000000000000000000000000000000..839afb522f6923536dd28c4ab5a668b7290eb912 --- /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 0000000000000000000000000000000000000000..afdad64e188608eef49f52c348bfa1f502a4a17a --- /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 0000000000000000000000000000000000000000..35638b8e19169f4783e7d219cd0ac77d145509ff --- /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 0000000000000000000000000000000000000000..05138f7e10de3032ec046fdde970c6e78134ec6f --- /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 0000000000000000000000000000000000000000..181a3202cf72d83513bde3b74944fcbf96d8cf1b --- /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 0000000000000000000000000000000000000000..9fb8934f8ab8b8471c27acc66bc36747f5e7b5ec --- /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 0000000000000000000000000000000000000000..8208dd69571cf387ecfa3bf7d3f7746b5e6634f7 --- /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 0000000000000000000000000000000000000000..aff0636de9df45a5fc3c9587bd250553ab61c8ac --- /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 0000000000000000000000000000000000000000..675e8ce515b354058c0cbf4d53f9280266d0fa0d --- /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 0000000000000000000000000000000000000000..fb3bbf80160586329ec64a4d44c245a9facdfb95 --- /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 0000000000000000000000000000000000000000..4261b23b754e3e4d896ee245fe215330849c1a0c --- /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 0000000000000000000000000000000000000000..1c3595fe3a74ba6cc12d164dddcb096231018f8f --- /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 0000000000000000000000000000000000000000..f53bee098f939195dfd207697714fab0f943a913 --- /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 0000000000000000000000000000000000000000..cb4f2373c461ec353dd5f535e40840d8f1e22b47 --- /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 0000000000000000000000000000000000000000..59327042f47fcad00e10f2be5e93d382d9ddd15c --- /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 0000000000000000000000000000000000000000..cb7954c620f7e4ad8fabcd859d28d6451d12ba8d --- /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 0000000000000000000000000000000000000000..e40c3168a966b66709019bd05396d48e260df001 --- /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 0000000000000000000000000000000000000000..6ed8165d26c92314f3d460d0712831b7c1a1a65e --- /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 0000000000000000000000000000000000000000..07875047e6775d43ff683566383a18ca9cc1b544 --- /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 0000000000000000000000000000000000000000..f6303e6dd9eb0d613553c302e51088e9bc705dfd --- /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 0000000000000000000000000000000000000000..c38b4c79538b730f187219518ed594c84ac5e6d3 --- /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 0000000000000000000000000000000000000000..304d47cea9e376ccdc985ee12f25f07696e438a8 --- /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 0000000000000000000000000000000000000000..f13baf5795a2e8963edf5b4f8f9ef92e2197e323 --- /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 0000000000000000000000000000000000000000..8e3f8c189ae61cdc31b863ccab440d359320157a --- /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 0000000000000000000000000000000000000000..a8525a6f541014a245251701db4bbb081cd265bb --- /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 0000000000000000000000000000000000000000..3153e1dbffbf3f9e1418b1f19d13f2271497db19 --- /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 0000000000000000000000000000000000000000..6b404d2d17c448ebfc0a2fed05e76ceba272bcb9 --- /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 0000000000000000000000000000000000000000..cc9534585209b42ff8042377826a3a072ff7cad9 --- /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 0000000000000000000000000000000000000000..d77877ee7594616b7fa984536560b7348e4695e4 --- /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 0000000000000000000000000000000000000000..360f59c8a75ae008fcd13a6b5482fab1418141ab --- /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 0000000000000000000000000000000000000000..2d94b934a12233897cb879f66ef1c8cf88caf0eb --- /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 0000000000000000000000000000000000000000..340ead7c856022a9eda0c09bd7b5ea27822bfbf9 --- /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 0000000000000000000000000000000000000000..10ffc6faea306e1f5ae9a9f6ade68ec273d83754 --- /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 0000000000000000000000000000000000000000..24146f64a59ddc4a3f9c1e30d471dd1f50770ae0 --- /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 0000000000000000000000000000000000000000..8ee7da639cad20a16979fc4a26f03cb65c611092 --- /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 0000000000000000000000000000000000000000..767af7dce8489fb06f1492781872a75b4e01b7e9 --- /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 0000000000000000000000000000000000000000..6067ba9526e58b8ff2e338685e802e49d772df92 --- /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 0000000000000000000000000000000000000000..de084d3a043d784b645b170be6bb502fb67a2c54 --- /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 0000000000000000000000000000000000000000..04260d98a12d184ebd427ad3385fcb389e174f09 --- /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 0000000000000000000000000000000000000000..59c64f19cf4038b6e00b7bf5a0b11e6746a0da24 --- /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 0000000000000000000000000000000000000000..aba2e0c56960aae806d52a64e07c3f04580d497a --- /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 0000000000000000000000000000000000000000..ed89eada681afd1b2c7c901ee72ed945dae4f154 --- /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 0000000000000000000000000000000000000000..7f5239888d0730bb27778d61e83e06180b2d67e4 --- /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 0000000000000000000000000000000000000000..6eccb6968651ace07e369e5bfb6b5ddbd7dfe5c5 --- /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 0000000000000000000000000000000000000000..ecfaf858d1d9bb3db14ddc576f135acd0b25d472 --- /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 0000000000000000000000000000000000000000..68e88e600d387bd0c95544a574621f79d0c27647 --- /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 0000000000000000000000000000000000000000..cb5b27fa7f2bf112af7e0a43c6f6fffd81a60855 --- /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 0000000000000000000000000000000000000000..23627f7d6181cb7fe5495f288bff27686f3f3a86 --- /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 0000000000000000000000000000000000000000..7ddc6ed18f9c49d7b90801fd3fbfc7fc8daf7b7c --- /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 0000000000000000000000000000000000000000..57ecf20338488cadbc60702e9c0401c65ae15c14 --- /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 0000000000000000000000000000000000000000..df906afd7d9721f379c73d49e59ddc8eea8781cc --- /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 0000000000000000000000000000000000000000..1b877bb2e972ae28f611524070863001059a124c --- /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 0000000000000000000000000000000000000000..c71fbd0d67ea14517c5a0cb3bc072944986d064f --- /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 0000000000000000000000000000000000000000..0b0abfbef78f5826091c02f10311cfeaafc95e7f --- /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 0000000000000000000000000000000000000000..e1d4c1a50c565ca142f8dfa2e8214885ee6cc7dc --- /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 0000000000000000000000000000000000000000..bcb6aca5b89dd33b3315a2379ad2c6e489a9ae83 --- /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 0000000000000000000000000000000000000000..36fa9cff21ed200cc89a5a7c78fdda596e95e8df --- /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 0000000000000000000000000000000000000000..df6ecfc8cd519e5185c643f3ae224fa7da2c32a2 --- /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 0000000000000000000000000000000000000000..466ba651b9e075445c9a4c69c8bd1ee0d9f36f8b --- /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 0000000000000000000000000000000000000000..686099ad21f08f0e43f242aea71d65a9923b2d1c --- /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 0000000000000000000000000000000000000000..f7e717ae181d705825641ad56179e9c78df48364 --- /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 0000000000000000000000000000000000000000..b3731ecc66c75c52371c75136e85c89667888385 --- /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 0000000000000000000000000000000000000000..e612540bdab4a79923b4dbfb797a31a72a8deb85 --- /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 0000000000000000000000000000000000000000..d2c90e90fa2764144b1beca836c6b4a4c5a0e76f --- /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 0000000000000000000000000000000000000000..89442ac5636c91cbe7ee4940bfd1dce72742e52e --- /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 0000000000000000000000000000000000000000..3c32ef7f5b60ca8c82903c08571a7f193665c567 --- /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 0000000000000000000000000000000000000000..3f01194132331ce7bc4928b074babeb25da9bb4b --- /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 0000000000000000000000000000000000000000..e7463e34268a4df007ac03b0337cba99d1b429b8 --- /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 0000000000000000000000000000000000000000..4d532536e71921b25cf56ed3537312e2c31a7135 --- /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 0000000000000000000000000000000000000000..c0e7257864207e66de850b27245fff019885885f --- /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 0000000000000000000000000000000000000000..fa5dc430492f50de6ccd2ea18d989c5714f41daf --- /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 0000000000000000000000000000000000000000..bdbb6595d640df2d81eae3dea51fd78f24c03491 --- /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 0000000000000000000000000000000000000000..e7daca94b4b3893ae6e2defed50dc2c52031263d --- /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 0000000000000000000000000000000000000000..9512fc4329c01b18e9f995de87f4dc6db54d81ae --- /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 0000000000000000000000000000000000000000..b3791ed9b2e0ca9df3e490202e1b45ca12ffbc4e --- /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 0000000000000000000000000000000000000000..9eca9465182db8af956bee2246afeb474526a3fc --- /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 0000000000000000000000000000000000000000..b783a1a7d41e107ebe2fb78265d7d40b93e5a49f --- /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 0000000000000000000000000000000000000000..e3bb9b04a5ab7959dd18339351345e74eebef9f3 --- /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 0000000000000000000000000000000000000000..050bf6ff6377c70aa0d4b1a8b1f0d915c8152bae --- /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 0000000000000000000000000000000000000000..440c175e568e3f1b8270664c52fb93b6c7442091 --- /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 0000000000000000000000000000000000000000..f14ef372c82e632dc859a0eaf2dea2af38eba000 --- /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 0000000000000000000000000000000000000000..15a4e9e732e143b2c085c1cd00f549a39ab3a823 --- /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 0000000000000000000000000000000000000000..de5fbcec9c7aae4cd9a463a87582b1adfdfd6e04 --- /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 0000000000000000000000000000000000000000..b9ad8271022fa8b699b00baaf2764bfe46a6a378 --- /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 0000000000000000000000000000000000000000..84e51e39224582220f22800d83559bcb0476b51d --- /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 0000000000000000000000000000000000000000..2a6a30294b83c23f5e0730b0ed5ee1ce964e6c1c --- /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 0000000000000000000000000000000000000000..7edee9fea059852330c262670e58cb5f7f7b3e39 --- /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 0000000000000000000000000000000000000000..e2171c026dc2054ca950b51e0b20fdedddbf987f --- /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 0000000000000000000000000000000000000000..d748ce5bc7a8314c91d29d5b7c7b38a56fcbc26b --- /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 0000000000000000000000000000000000000000..db021eb762eee0d5589187164649d63646b16b68 --- /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 0000000000000000000000000000000000000000..d9e07040d36e30f8633750bc55557b744d9a28de --- /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 0000000000000000000000000000000000000000..8cde6c9b8435d7c370cbcba1fcb5d8551f1ea737 --- /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 0000000000000000000000000000000000000000..d73186ece212d20ad136e5b0eb50f16273048a97 --- /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 0000000000000000000000000000000000000000..ece780bd361b19e6505f32a70313a133584f8da8 --- /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 0000000000000000000000000000000000000000..cf2a334cab8b4f906f6eb36ac122de5156f62a0e --- /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 0000000000000000000000000000000000000000..310947282b4b7c3f5ca41f76ee20174abecb383c --- /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 0000000000000000000000000000000000000000..37a1dd9e139410e7e9240516bc5cd94568ef4e13 --- /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 0000000000000000000000000000000000000000..e2e1f71ff3befc8e2fe29651badd49cee8becaf3 --- /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 0000000000000000000000000000000000000000..503f8f4ed71cd1fe355a4030d6751cb903d4122f --- /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 0000000000000000000000000000000000000000..fb3bdabb8c1b7fda6c15a2ae55d9be09f8026ce1 --- /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 0000000000000000000000000000000000000000..b87a4610da0579deee20ae4f3068a6746c90c44a --- /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 0000000000000000000000000000000000000000..09e4d9e5de490b42799c7ae3b1c0019baa97985c --- /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 0000000000000000000000000000000000000000..83ea410f67f552b165e8c9dcb8b135b9908d37ca --- /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 0000000000000000000000000000000000000000..1f6881ab261bd0ae65cd19cb6710aad2953388b9 --- /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 0000000000000000000000000000000000000000..a7efc4cd9ccf04e4fbd3bafe7a1e7c252c642673 --- /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 0000000000000000000000000000000000000000..63023f2954e50ddf7b47c0a9a73a7d9fd5afa22d --- /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 0000000000000000000000000000000000000000..64c93b99f8f619d3f3c4bb70d65af1ced227c8c9 --- /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 0000000000000000000000000000000000000000..da22d6c423b34426aba33d71c8e5bbdb36281111 --- /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 0000000000000000000000000000000000000000..a83080626d134b45f9122635d88d6aea8414a0b3 --- /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 0000000000000000000000000000000000000000..7ee317740f8715e4f97c09699ebe9d0ca23cbc12 --- /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 0000000000000000000000000000000000000000..fe9682b77e87baa695f923c77e16310e841f1cdd --- /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 0000000000000000000000000000000000000000..44d364ee988159b425e0d19662e8d84d38b3e807 --- /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 0000000000000000000000000000000000000000..eec36a3d9ab41bc05dd7d028078e9d7eb85ef12e --- /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 0000000000000000000000000000000000000000..1bde81592c1304b3f2b8c8530197005ac02c5cb0 --- /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 0000000000000000000000000000000000000000..b54bf3788eb351f6801bfd6b2fbaac348e3dd21c --- /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 0000000000000000000000000000000000000000..3d5deb1a56437b1af199b3ebe0bf8e059dc2b129 --- /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 0000000000000000000000000000000000000000..94f56418f5d5e83eaf4ecb7b671bd5e5231a3d14 --- /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 0000000000000000000000000000000000000000..613e5ec730e2d534de6d762898dd926c7c505477 --- /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 0000000000000000000000000000000000000000..0aade8af6bee11cd50481b56f5051382e168c364 --- /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 0000000000000000000000000000000000000000..f5bbadc3b9d7a34976fd91b9c466e054320bdef3 --- /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 0000000000000000000000000000000000000000..d0278e54dc6dacd21b94fb0c638ac2c8c4b7fc40 --- /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 0000000000000000000000000000000000000000..c44ccdcaa97626ec25821a70890ce79fc90c4fc4 --- /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 0000000000000000000000000000000000000000..f964831c59ceaa2b565669677c50822c476dab69 --- /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 0000000000000000000000000000000000000000..c917183fcab2131b9208a5273cbb848d46a2bb02 --- /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 0000000000000000000000000000000000000000..f99bc27d0ce520c1146f3ff221b078ffe211edc7 --- /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 0000000000000000000000000000000000000000..28f211132b6283d40bd6af8807413cd5eb1c6bdc --- /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 0000000000000000000000000000000000000000..9e92cc341011229ee93b80f148540f14ea3ef8c6 --- /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 0000000000000000000000000000000000000000..5cb04bead42e400a22725c0af7ca19eb22a7b7c7 --- /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 0000000000000000000000000000000000000000..be5fbbea21c8c49ef1b2f6a0398103af03a4ea8b --- /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 0000000000000000000000000000000000000000..200be4aacb4f82970f50b200512cacfde984505c --- /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 0000000000000000000000000000000000000000..f2ff376583870fb8aaa4080c1228168d3e0a894c --- /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 0000000000000000000000000000000000000000..2705119b1b2140d4f1c3944f0af51676a4f89f64 --- /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 0000000000000000000000000000000000000000..3c3d2ad86019cd2ad4df90607ae325fdc2bc8267 --- /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 0000000000000000000000000000000000000000..469712a38ade40a6f887e41bfbbda71a802e983b --- /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 0000000000000000000000000000000000000000..ec90d91ccccf0a3f543bbed9290a21836b50baa2 --- /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 0000000000000000000000000000000000000000..1d2ef4f1811b9474774c81b8f8ac79be11621f4c --- /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 0000000000000000000000000000000000000000..7f220c0f0a74e3dd26b9e638ba8048862c541374 --- /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 0000000000000000000000000000000000000000..7bf261182bf98283871e630ed744b44f8547ad25 --- /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 0000000000000000000000000000000000000000..d6217a79e940c65b6aeb1c6817d09506cdea22b9 --- /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 0000000000000000000000000000000000000000..43869987577f6c48694aec1ee6c98545c85a053a --- /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 0000000000000000000000000000000000000000..acd02f26d5b67839ecb0745143d179e48e56aaed --- /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 0000000000000000000000000000000000000000..8d4cbeb547ec297c84e8b88646ca7d990abfcb79 --- /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 0000000000000000000000000000000000000000..3487ad877ca1e2c7d7790ff21d0a208a78e1dfa8 --- /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 0000000000000000000000000000000000000000..d69c495e511e98527db507f698009043ecb48858 --- /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 0000000000000000000000000000000000000000..8a6f10491dee7111c352b8186b6b58baf73b3968 --- /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 0000000000000000000000000000000000000000..8866cb7cc0eb0f0d1a3e226e04206f53f9d1eafe --- /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 0000000000000000000000000000000000000000..71ab65a4c027fcae1c9739bac03e3427a806c10d --- /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 0000000000000000000000000000000000000000..82eb83e9d67eaffffeea5edd51dee1903e6f30bd --- /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 0000000000000000000000000000000000000000..6ed4569ffe9e86383dbebb6d9663347e564e897a --- /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 0000000000000000000000000000000000000000..915880663ae69fb576d75ba1c301df083ec8b0b5 --- /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 0000000000000000000000000000000000000000..6939b55b13507efcbd08111932a583287608a4cb --- /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 0000000000000000000000000000000000000000..a11bb65e95cd75bf9494713b1b6472b55cbc33b1 --- /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 0000000000000000000000000000000000000000..87252c4588304aef65bd9c152b3a2cbe086f250d --- /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 0000000000000000000000000000000000000000..58b7d1c61239775a3af938724e62d2d4903f6d1a --- /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 0000000000000000000000000000000000000000..b1fedec7b2fe530f6e8aba0fc99a6157a13a74a5 --- /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 0000000000000000000000000000000000000000..fa123aaafc0cdbb18c6022969ba45135290b3955 --- /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 0000000000000000000000000000000000000000..d5f26231609649a7156c6c641a3a4c52c6a9a31e --- /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 0000000000000000000000000000000000000000..e64fcd0442655e502391970e3dc2cc360bd634da --- /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 0000000000000000000000000000000000000000..618de9f288a8ccab9f019dc919aea1061b7f8ffd --- /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 0000000000000000000000000000000000000000..598a4ea3f9d69af132e6171bc3b9677e848a6ab9 --- /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 0000000000000000000000000000000000000000..4cca482b5bd62f65b62a5a7f5eb33c39002fde00 --- /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 0000000000000000000000000000000000000000..4380ed89adf6813f9736c6ad0352d2e3f0370e16 --- /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 0000000000000000000000000000000000000000..f85109f6f542c00e5a967e44b38b9698991f66e2 --- /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 0000000000000000000000000000000000000000..4a7c10466099b6c19aaf5478077fbd8e25995d85 --- /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 0000000000000000000000000000000000000000..7eb500e65792b17a7ea5fafd8a99999e756ede25 --- /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 0000000000000000000000000000000000000000..5de080288e7d566ec38ef6c4b998393f37dd6293 --- /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 0000000000000000000000000000000000000000..976d2224ce7ba4048fbfecd10c0e26ce03586005 --- /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 0000000000000000000000000000000000000000..0831432c43c056a5796a7712d62d6f8c5821eb8a --- /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 0000000000000000000000000000000000000000..06ac9ebcc314b69dec29c0fad100d770a0c3eecf --- /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 0000000000000000000000000000000000000000..34c3c6352629987bebeb0928bfd34d6373a5aa6e --- /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 0000000000000000000000000000000000000000..27a35fe156639f101b30dd744ae367f1af60399a --- /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 0000000000000000000000000000000000000000..2974cf641c3bb3252b6933a17380fa3847a7ab9e --- /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 0000000000000000000000000000000000000000..59e91f5bccb3442c86c5334835fee55c52765580 --- /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 0000000000000000000000000000000000000000..9ce01baf2e7e2b2876c07b1fb23659e5a9163227 --- /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 0000000000000000000000000000000000000000..1f7b813c93e0165038f4439846ae8b80bc10c701 --- /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 0000000000000000000000000000000000000000..d8a41637c6fdb70274b3585d05d92c46c5db42b1 --- /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 0000000000000000000000000000000000000000..fd69f480ead4c0a9ef5cf136d6cf969a973ed15b --- /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 0000000000000000000000000000000000000000..18617c071b00c331d3e77ed73ff6edeba0453c31 --- /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 0000000000000000000000000000000000000000..c2e12579c80e285e0a3c0d4869c025de78923c69 --- /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 0000000000000000000000000000000000000000..964bb0c5b58228239ae5f519a41eecace157a557 --- /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 0000000000000000000000000000000000000000..9b7491112774c7edd0276517c43e1388de8474b7 --- /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 0000000000000000000000000000000000000000..dae7315f2c5f39e231ff13b104cf91062ab3301b --- /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 0000000000000000000000000000000000000000..67e23a4b76bd3dc8bfa377d48841d609c7f7be26 --- /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 0000000000000000000000000000000000000000..817e74879b919f6d66940c569eb8a178f1b7a893 --- /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 0000000000000000000000000000000000000000..b8f9ccf78e2ea4623e3c50dbd315406e1c341329 --- /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 0000000000000000000000000000000000000000..923f231d0808800100cdabba6802f01231fd6db0 --- /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 0000000000000000000000000000000000000000..d3796ea68085d7475c107ffec14bccfe3add9784 --- /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 0000000000000000000000000000000000000000..69a7845d4c90f797166634ba16d37833588fbc00 --- /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 0000000000000000000000000000000000000000..7e843ec91887f8435f9ed906729fac66c38c85cd --- /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 0000000000000000000000000000000000000000..f2008f722d1e7e281135da81ffba8733f70e4c41 --- /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 0000000000000000000000000000000000000000..fc371e44cfedb604532136101a1446f0a4c05e6e --- /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 0000000000000000000000000000000000000000..b40796893917cc72fd76246022b2a61d90ec0b86 --- /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 0000000000000000000000000000000000000000..445fdd52178537771ed64333b810a4641cc83d74 --- /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 0000000000000000000000000000000000000000..14973b7964ec5d60a1174e4a57482ad38520962e --- /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 0000000000000000000000000000000000000000..7ff6dbc89b49318676f3d7dd34c4fba38af7f52e --- /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 0000000000000000000000000000000000000000..12896dd330adb20bba1a6a0dee3437b806baf36a --- /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 0000000000000000000000000000000000000000..8195a260af37102ae5887f7af5bc46132b05a2f5 --- /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 0000000000000000000000000000000000000000..ecd1786101ed3f8f77540dcf8d94e260db720375 --- /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 0000000000000000000000000000000000000000..844552de5590e12cc636e24058a69e8148f710c3 --- /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 0000000000000000000000000000000000000000..449d3507e0f65427cea3e0c40632005897b8d9e7 --- /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 0000000000000000000000000000000000000000..447b4045e523376424661eb1b3662e3d7ed985fb --- /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 0000000000000000000000000000000000000000..4d9c5430e899d3ad98c73ec3f952efd3af06ab5f --- /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 0000000000000000000000000000000000000000..4bc5cac7be5053851437590ed5073be3f2e212d0 --- /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 0000000000000000000000000000000000000000..05d748e7a68867d791ce65c690be5ac95ef16d47 --- /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 0000000000000000000000000000000000000000..421cf1df392fe06f6d98f2163993a48a5b022b34 --- /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 0000000000000000000000000000000000000000..97b4913b2027d79980c925ad6afab64f972f172b --- /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 0000000000000000000000000000000000000000..131bf073ee061f728aca0ae42a77685edd616110 --- /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 0000000000000000000000000000000000000000..c0d93680a8a2981cad09053bca350f24eefe8b66 --- /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 0000000000000000000000000000000000000000..f2f9131429aaa437fef14badc77fe618649361cc --- /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 0000000000000000000000000000000000000000..017fe349db611b6de72f1f9756625ceedc3e385f --- /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 0000000000000000000000000000000000000000..b2ca7be4a136e9e4b8f76acb55883c7d6e6a0bb8 --- /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 0000000000000000000000000000000000000000..55decfba9865a7112610e896ed1766f2d6be803c --- /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 0000000000000000000000000000000000000000..00809edbc70e247671491cc7434959f300163d46 --- /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 0000000000000000000000000000000000000000..dd85291705d66ab14a943493c00dff8882ed6b08 --- /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 0000000000000000000000000000000000000000..44412b3a8f382f68c68b37d0069404b11cc5c5a4 --- /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 0000000000000000000000000000000000000000..348574e2a3040af7ea64a60d06fe5a6b6db194d5 --- /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 0000000000000000000000000000000000000000..75608de4459cfba03f40b23d3bb57e870fa24e49 --- /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 0000000000000000000000000000000000000000..4cfb3456ef33e3b4c08227bc671e77f3c55264a4 --- /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 0000000000000000000000000000000000000000..271723e006b33cd5dc48820d4eb9c4faf1c9db44 --- /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 0000000000000000000000000000000000000000..43d897cd64511e482b32bf96455f737be9d060eb --- /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 0000000000000000000000000000000000000000..181b766e7e1fcfea02076e00f48039abef1cce6d --- /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 0000000000000000000000000000000000000000..8a7022d97ac1bd111d493ba5ff52ce6229bd1de9 --- /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 0000000000000000000000000000000000000000..3b335542c434eec40745d52a95d80743e47d6e3c --- /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 0000000000000000000000000000000000000000..aa5a1ca439259982df0b30ce35df28b8b3c5b39d --- /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 0000000000000000000000000000000000000000..adc1e3930a8e600d08228ef45c2df49dcf122c93 --- /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 0000000000000000000000000000000000000000..28c389414e5fe110d5021ea700fcd914c63182f0 --- /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 0000000000000000000000000000000000000000..26754a1d696c320c7eed9f79cbd63d21d1292634 --- /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 0000000000000000000000000000000000000000..771f24f71d02592f8a28a573af9f5b55c19a5d23 --- /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 0000000000000000000000000000000000000000..fbe598a8ca8a08384a99d8e5621f7de7f4604b34 --- /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 0000000000000000000000000000000000000000..e587b88f4f7b0f5101ae56ff48bc548c125a427b --- /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 0000000000000000000000000000000000000000..afa0970fcb78befe05386829e0785ad8bf377b59 --- /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 0000000000000000000000000000000000000000..ec05584d13ef25d1ec227e48e1c634a599983183 --- /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 0000000000000000000000000000000000000000..afd38de00926a6543c829017f160cbec6fe7cc01 --- /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 0000000000000000000000000000000000000000..f726b5f28b8c360d05afdea16b9fff1e4d354e35 --- /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 0000000000000000000000000000000000000000..54cd4c234822ea3c287627625d6593e6eff758fb --- /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 0000000000000000000000000000000000000000..64d55e79cac74a31f909e03df8d346511db35b30 --- /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 0000000000000000000000000000000000000000..368a82288f09cde0660dc0a577e7d151989d8021 --- /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 0000000000000000000000000000000000000000..9d04e8b330badeb0b07c2c74ac80b4600b7329b8 --- /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 0000000000000000000000000000000000000000..007f129ce9b34528e2b2f0c592a70a53703af066 --- /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 0000000000000000000000000000000000000000..95dba029b0aa3eaa57d89912148c4a6ac4d99f3d --- /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 0000000000000000000000000000000000000000..fe79ad20cd2dbdd06aefe4f320b0cecceb3e75e8 --- /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 0000000000000000000000000000000000000000..a4ae16439127bd3727feb6dfba7163a880e4f2cb --- /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 0000000000000000000000000000000000000000..9508824fec602e78644d126f4f68f3b1b52ddd09 --- /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 0000000000000000000000000000000000000000..3e3d5ebc73995543f27dace17787fd41f4082ec8 --- /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 0000000000000000000000000000000000000000..39f8a463d5882dc9d53d04145a3fbc2241dd462f --- /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 0000000000000000000000000000000000000000..b9c913419870e58cbbf4ca05a612a12944e7dfa6 --- /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 0000000000000000000000000000000000000000..bb444c6534eb17d305e494cb1f99a4bcf05bf63a --- /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 0000000000000000000000000000000000000000..9899b305e77904070799fab89cb2ea6f4a9e457f --- /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 0000000000000000000000000000000000000000..38f945a560c5d20183365308d6856a9a05186f32 --- /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 0000000000000000000000000000000000000000..9a0b9e512c3173812fc8b41b400687c254775027 --- /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 0000000000000000000000000000000000000000..09879044f85dcfb8316d5fa69a3194df39b9a77e --- /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 0000000000000000000000000000000000000000..6edcab54b9cb61f832ab2ac935a5d9473fce5bae --- /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 0000000000000000000000000000000000000000..05aedcc24aae8acb9f7be50c6d23cb2d0124a766 --- /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 0000000000000000000000000000000000000000..8b5aee1f4c45f1bbfc9d5d98ceb7ee320be4141b --- /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 0000000000000000000000000000000000000000..356835a76d3bf1e92375972fcb94d3f9132c1735 --- /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 0000000000000000000000000000000000000000..32c1107b864e482b13337f0d96a50912f9588fe5 --- /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 0000000000000000000000000000000000000000..071fbcd078abeccc1c8310bc8c767cda14a91508 --- /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 0000000000000000000000000000000000000000..0bffd480b94c82bf9b72ceca0e9afc9a39c0ced1 --- /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 0000000000000000000000000000000000000000..fa6cd67be72688572de8e0dbc954cf20d66523db --- /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 0000000000000000000000000000000000000000..6b329b7dec3df291263b6578b922f17194e6d6d6 --- /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 0000000000000000000000000000000000000000..f6382b55013949787aa0516ec3be35b9724f705c --- /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 0000000000000000000000000000000000000000..8f6433f009b3d0734819c39302ac3c200c593dae --- /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 0000000000000000000000000000000000000000..65cec1d6e32e3e52f9aae48ac935f7c25ab707db --- /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 0000000000000000000000000000000000000000..614881ee29376c9085b307e4eead27f4cb5b87c1 --- /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 0000000000000000000000000000000000000000..5c2f2703eb4f00a12cc41680e0f404ca30abf9a6 --- /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 0000000000000000000000000000000000000000..a47e69826585a6299ba514b433f6b67ff361eff5 --- /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 0000000000000000000000000000000000000000..5b89582369f346a6cf5c1d169fcfd96ddee06d35 --- /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 0000000000000000000000000000000000000000..78bc6e8b6fefdf453a6caba9b6eaf7a04ffba0c5 --- /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 0000000000000000000000000000000000000000..c1b08c2ccfae70317e444149d6cf69d0b528d482 --- /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 0000000000000000000000000000000000000000..ca3eaa6e5ab43bfe97e0d6d90bd262dd884d786c --- /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 0000000000000000000000000000000000000000..543ceb1d3f6014e09cbda847ddc2d0e4c95811d4 --- /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 0000000000000000000000000000000000000000..55436bc64a4e3c1e6b32c0d40f13960f5e93b4d1 --- /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 0000000000000000000000000000000000000000..816b9703b6051f522e89b62ea51971ef5ce91f58 --- /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 0000000000000000000000000000000000000000..b904661d61c03110f9f37ef54631b262cc2e1032 --- /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 0000000000000000000000000000000000000000..a8fb2bb1b64ca94509c8e7d82ef96e7d5c2f9ef2 --- /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 0000000000000000000000000000000000000000..adaf7f56cd759f77c86c563ecc3c58ef42fc177a --- /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 0000000000000000000000000000000000000000..945b36af044ade6eaa65f3ce8c150d7de29a9c56 --- /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 0000000000000000000000000000000000000000..7cfbb7cf4ae43aa1e313e8214996d03f2c0db780 --- /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 0000000000000000000000000000000000000000..e64352df593eef6655ff3e9ed2f930bb89bcb935 --- /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 0000000000000000000000000000000000000000..2097682c0e7364922484b4afd1d7f903c20579f0 --- /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 0000000000000000000000000000000000000000..5e7a3477d2c74a879e6f29d3f8d400e4a52f738f --- /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 0000000000000000000000000000000000000000..6e3db5f37dc1c24e7e8a93f6e5a3efc00c973886 --- /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 0000000000000000000000000000000000000000..47d0e5731b79d116c2c0a514dffb53086621c3f4 --- /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 0000000000000000000000000000000000000000..1f862152aac142a6933e7eab1012745d3f7f9a30 --- /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 0000000000000000000000000000000000000000..abdfd6b8103cd5e4ba6e4eebeefb9f4d10fd7ff2 --- /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 0000000000000000000000000000000000000000..4f1164c0d52ee8b3bf2af279be1831eea1446fc0 --- /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 0000000000000000000000000000000000000000..82722ffd5b0eb16783ade682fc592774399d43f9 --- /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 0000000000000000000000000000000000000000..c0dfdee0df0477e0af44e679a3a5d6db3c32b6fc --- /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 0000000000000000000000000000000000000000..72f831627bb0492208f3213c7b07b8b57d6ef4d4 --- /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 0000000000000000000000000000000000000000..b14de124ce8f8789885b1d956a1a248a372db1ba --- /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 0000000000000000000000000000000000000000..5c562f06547e12b15d4795b2b96edbb220605bbc --- /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 0000000000000000000000000000000000000000..9f8456dad6894599ec0e83e95f9fd47c976c8503 --- /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 0000000000000000000000000000000000000000..83a672f0cf49a718e46b4ab3246d567d40c89cc0 --- /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 0000000000000000000000000000000000000000..ed438927f909c4ca47c54b8ca6d37e87553bd694 --- /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 160b90964ac171fd9a24b22fa1ec51640cb7816d..924e79de1f927c82ceb0f3c5ca3ce326d0bae01b 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 641f8ade1d025116ddd6655cdb2f8d1e217776d4..bf4b8febc4d534f59f4798042c481656138df4c9 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 2cff4e6f042fdfe1cf5b02ca8bacc8d1a0f62019..07cf4c1cc7c80c9933bc2fdeb7e01bdcce8fb964 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 9e7238f34a00b8c808b97508e958718c66bc85d8..10faa74a3f8760b93b0b50474d20da4320321415 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 dfbbc9d5f4a31d0292eb2cf70548f6e8af07e472..36e3fd80f74bef9bd1b0b284c921ce9373e4c29c 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 2a5aba50e59c990f88766f7dac633a9991acfc95..a9ed8e9685803f7da92c665b97e8418500c2a8c2 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 e6b30adc00ed7f619dbad3c318e53e01cfa7553f..7581ca912df36f871853db271d2b00dee71d1391 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 f6dec66e6bcb5fd585836be94d2dc2408829177e..f7ff6a941797c95181096a4e2e3299f563be67f3 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 923b94767ca22230376eee68f2b1b2b8679e5c60..fda5f98ec991ec19ddba711c892682a254522696 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 784173f08a1a588267c899f2183fae663d79d49f..b6dc809274065e5ae14dbddc90c3b4e682d78406 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 18e4b568b6429f93271784ae908915c0b42c40f5..418c5394152f4e083053d63b546e87f7726e39dc 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 8d4e61ba8e7e97cd9dd0349e775e0a0866548c75..d9ffef7dd1587a12086d9597c770b0534815d9cd 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 0000000000000000000000000000000000000000..0d9bd7239e0d2649f8264b11b915b84f0b22dd6b --- /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 46a693a97f92c6cb3d8cd3dec82af776aff330c8..7cf1f47abf998d1951ca74412d52f14074d3132f 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 86f0c141730045f76eb6fe238f2e8adc75e86b19..ca48993b7c57a6e77c95eb4784a3b43c2fe30c4c 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 ba2474463562304a4cf0a34ae76847cf070f1761..c6a5794359e2ae5bf23e09a0e521f0c19eddbb6b 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 666febe0b43579e43fd3e4491b565da30dee4d1e..ee35205476b8c916336102f799fc3becd83e859f 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 3957d4ac1ec46dac521d1f2e4245e899d174c4c1..5086854ed8961ad02924eb7e6db2eb8b29b2e038 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 9fc58c5c0e23fbf9e1dca1ae685434e11898aa74..61c610970432a58dc5080bb936bdacd8da3388ca 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 1576a966cc7f429ec8a2a0ce9d5c565ae7cd56b0..694f30d76bfd52168c94b9852ce67b7b21a6945c 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 c8d001a15c3f6372d2699ca9fd6849269ce3926f..180f87794b3675453772196e2f42e27383e062ed 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 2ec36073665cc00cb3353495a342fd4ba6a4bcfb..d38a485b90b43b82b9ca49b6b1e1096b14179117 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 bfac924b560f8e6cd7f6ac8dd3b916eea9d88716..bfa902db3cbe3f2ad5a31cfa0bac61ce47e8d922 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 7ea0949b01fcc5babb4b6c3148c0c1da84e779fc..d67323e618a614056879ca138d4559884dcf899f 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 6783fce7d498b9d8b9d64d18c17f716f0f549568..6170a879e858458e3f5f0d9b239dfb011dde053c 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 dfcac096839f5c8ffd1a4f1c7485763788300387..19905ba9df7abeae303d91bc277520b47ea27a6f 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 870d3e5764daa9cd5976a90b223a32344db76d3e..d4557b36105f1dea020959983c06d9ef77e6657d 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 b59407b5b1761e70a7ebd843bb495e9533194edf..3c563de66f4262c0e4084a46fe8871454df2ffd3 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 353f45a28e8a9384e6c7cc09676300dd76a505cc..92b2cf8d7bcf7f5dac022d03f927a88a9bc3d0ef 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 cc89b9b086d5fad5c567f5ad7fc8e27e2df8885a..69074515e34819f32220f8ff61c979c1347c64f8 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 0534aee3581c09ac9cfd6abf1a5493e8ca0c9c45..75316e01324252402ac5c124da282fbb449d5ecf 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 5329369adc3fac6ca69a539315cd0957ed528d25..c8e0ff47312e03b993db73a3bb028bc5e385d0ee 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 c857ffd4d51d0727bba81d29eae09077051c31ad..1b80ec948be383d142976d884e9e5867058b5833 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 00feb6c5e3d11f721cb7a54cefbd5ea31e02cd05..9124cedbf6f24b8e3605c64af4070fd7109c089f 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 401ac31bb1db8c75c6970c93c3541b613f7b32c1..5a009cddf3d43aed57ed400bed24e3bf908ba5a7 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 cba51f840d73a6a92e3bda7f26b798f001fa678b..a5ed6e79879fbe94bf1f7429214aa0b6e383c247 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 6ec5193d234ff3a57b061e6c73d1a5aa93e2089f..c924e1adb54becfd5750d762d2327d113e7d2255 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 c7298b214225500f292d57fb13a57f21695cc5a9..e63fee450dc0db2b879f19f109c4b4ba71477d07 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 5156362fe7e7e1d6d5016364dc1db111c064403d..c76a40e12c23afb5224c99782cd9c0655040a747 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 6e5357b7ef96f88a7d6259573da1d1dcddc39154..7bf4e62c29bac727dbd350b2711bc39ed1a79be0 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 46f1e6ece4cecfb50cb45b5df88e48f35bf24df5..c090e09aaa0081278e7c3c1cbbddbb32dd7db77e 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 59833fce5b08360e04f849533f5a5825736242e7..bd39f4e96c55616fb2f5852b62d4a016fa00a4ae 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 2751f85b48202b329614b423321e36f54ba41d76..70b53676265d7c940b951e8452ca25e9a8b3fcc4 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 8d0dcc697f63eca51c8b31113e57abdb282fde2f..411b2bc7d5bf3a867ceeea741f3fb3a4049dae0e 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 117c80f53f890472e1c771f6e94231b61428d8e8..5f8c16dd1ca8f5b4475cba6e20061c01b42dfa43 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 05abdccee06975afd63d5670444073c0321ed641..1f8a78e55d1b5715f94162fa003aa242bf947dab 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 cdc7c52113acae84e550a4127dd0b21b30bc7e08..8f987b46e76edfac890e86ade984624739124d4f 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 db9f233ba2f512676654a4bff209958a60413be3..ea7448cb655f12672a1199792356f1cb7980ca3e 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 17232216fa979ddd7deee7bbfe8039a2935844aa..412ae83bfbf6eca4cd37a801e2c0babd942eaf3c 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 6c3ab57213a410c1dc14d120269bfd982ce0a040..b6755cb66365f177ddc2bc9649975daf3b425685 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 ca2049e702441bb98e99fdff7791007e30339dac..7cbfa7886ecfb2805f6c2af216b4bfe7b8ecf788 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 e6b4e31e8621fea1d07619d2a112060f47686097..a89756ef3348c477f8d3c59c1ad51ded635e210e 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 41b16998165cd401f95b0d517a6843e844b8589d..a9922bd8792febadbf56dd2815c80a0104f9215e 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 1dbb44ebd6e1f9746ee0eb24145eec1e75cb742c..595b6cc70b89af3b0ea38c78f6ccac030bd018c4 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 6bebabd75d41f12072ab182898ee42ed5ecb1e51..c56cfb1cbba000a775bbb3b70d027f9f59f90f23 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 2588f99822d211287158e33b3dd7e19f042910bc..235e203242998a430aaec3a5251278dfe181ec93 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 e7cf48320752556abbe7135d893987bbc7ac37c2..ad02be1c10039715d43991205861d7f6555a391e 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 a487769bd042a6e40008d090157c8103d1a7e143..148b665cc195b3169ed8013b814feb4bb2bc1292 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 5c8476c36f2bf417fe24d56b111bf3e852874d2d..d6e9cec8eaa211e3fc65be1cde3e424fb46ab98f 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 7db2fe5f092e8786927bd718485885fc495e0d0f..49aa19b4cb668c6f1e117f1ec80ac76861e2ec6a 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 da0b7fd965ab35c6a10daaef8523701de5e37d8d..c7ad95020f41b49ebc91b529a7a32a986d54748e 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 0b3cc5ad7c688d9876729882de6d3196758905e5..cdf6c2e595e3da1c024d605121f1ede2985edbc1 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 c3f2da970e7a5575b3f11cb6f6bbd8473a529696..24599ef8678bad5f591a726de65f203dce9d1e85 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 55987155f8ab291c96462cdbdb4c7dc4178845af..d0a37bfd10e5d233d6347a6c95924f05cff87b7e 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 faea2c7334fc5da2e6a31c6d4032420f1b708e0d..9edfa39c5871776c28d011f4c0fe092fe0f7a3d3 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 0e65eeaf9e10c1e32b3858aec7a983463263ba11..89de28aaea69ed4b044b30d912b2c76bee2bdb68 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 67d5a2ac5e16f883732482fca2524a6c6637f73e..84b4129460d1b2751882b6ac98f24f478175b5d1 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 f363160a944935fe9739e0b087a0b6d77e93d199..a60ea338dc2475420fa073f869887a7c485553a0 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 66cb3b5fc91d7282c401471f3872839819b18144..3408445b38b3239f3b5c2efa972bac83df7f392b 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 2dd0f1a5e637fa1bffb24caff8b1f0d634eac6b4..383fe5b04673b8a1733819231fc20b099222dfbc 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 b6075e7a6df7255f461e07d6385218237785c007..10e66862f361ed06879e5fa168ec672830241f78 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 573fd847fac3ca3f6b172e96bd61ae10076309eb..fce3aa284744ae15d5d27ebf216f53b99c07989e 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 ed4a694b9277fa2d5b95bc0a0473a660313975da..b786470cb88afbe481504f1c6ecf26ea088b3511 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 fc89ea8d6d6b02846a2abd7ae6559668a823b81e..314011b0d28e10518bce16a6182d2c9fe950d000 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 091b776f233da6e2b0ba2b36d0861e65e69c306f..aa58c49c1b8511dcde2e771dfc9496f965beb3b6 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 59873edcedd3821856520bec03fa62ad47b5cadf..e628de824fb2571f787064e1e5cc33838d16c711 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 847a39f3a1523039f8421ba4df42dcafee8f7c2c..60837b3ddc066c5636090d8553dfb9f1d051411f 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 cfb4598906e67d6e5bbcdef39a2e45abdfacd9d9..2fad304c1f006e6791a062b0d7e7179f213ddb03 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 581707f26e90ab732227fe4cbc0b8f8eab69fa80..be0093285a598e7ff40956905ead9768c158304f 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 2052dab4b727b86e4d11a4e05fd5543dce431775..a0cad9deb7a4825016030299f045deefc33a8dfa 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 375253844906fc66cbd61f02e11c4025f6d1a5fe..905959cbc3c665761e3b1b50ecdc00ca624c6873 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 8bc2cc97f99fdc3099f9458807c3628091dc8499..6bc3957d0bd073f139e78ad2732faa24aeda3c22 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 13fe5f78c8451934b17c8ba8a619d3fcb11b427a..eb191d4bbf8aa799f67cfebec3ac5fc47ec46a37 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 2a047d504ba85efd651275c0f4c5ab18102b7797..17d9401d5acbc0e7cd3f683329771b1d8ff42d57 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 6b91f2e6470b628492ff55f789490f7bed3ede63..7c8970dd873ac40df0424524834372cee1447eb9 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 8c49621c0a2c1e900d7c8ce25a362ddd1f7d05e5..059d7d9e54605727afddb24ad74b30cafc161fd2 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 bd89f3c89fef2317566c7d970b69b1dcbcd20bdd..57cd9dc7d96c5c4f1486e72ec1aac228d113a1d2 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 0000000000000000000000000000000000000000..d1d1b3a98f3297dc93f2ebd77b512192b0aa9954 --- /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 0000000000000000000000000000000000000000..e18dbbcdaa0b43cc4b3f5b36690d6c9a99e10d2e --- /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 0000000000000000000000000000000000000000..90d5da6fa08884e2855cf096fc5347bfdbe6a14a --- /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 0000000000000000000000000000000000000000..652f42a12fb6d27b97d2c3219dfdd9f565ba4b69 --- /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 0000000000000000000000000000000000000000..f3142171044c6154390ad135e02e953624d8437e --- /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 0000000000000000000000000000000000000000..c44297fdf085967bbc0005f0d5741a18cd8ffccc --- /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 0000000000000000000000000000000000000000..e8505c96d4c7c9cc8f0bce8f80009e84e38315c3 --- /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 0000000000000000000000000000000000000000..9a8e9701e6207761bba86e751ee46ad4d3bd935c --- /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 0000000000000000000000000000000000000000..45967e01912d1cbe3c6b4742725b7edfc2440c8e --- /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 0000000000000000000000000000000000000000..ccb34e9c4365964a2aa47a11ac4a3b4b22b79fa5 --- /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 0000000000000000000000000000000000000000..9cd5d47e39a6566093aee48ce5ae66dc20dee109 --- /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 0000000000000000000000000000000000000000..d744ee29cbc95b4b97513296c443d567624f159c --- /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 0000000000000000000000000000000000000000..d0e31a39073bcb4a7c46a275026f86fc155fb932 --- /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 0000000000000000000000000000000000000000..b6186a0e0e22091f71daff7403a2a5fb75d0aa90 --- /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 0000000000000000000000000000000000000000..641e4004971160050b70327ea7666215d3ca237e --- /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 0000000000000000000000000000000000000000..ae003198b307a84a7cf0612a5d66fd1be05d272d --- /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 0000000000000000000000000000000000000000..81b1121323da967e80f02db345e7404375d5ad75 --- /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 0000000000000000000000000000000000000000..68c0952b07136897f3571447d0769b75bb117e13 --- /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 0000000000000000000000000000000000000000..d62d108412c20160cadc8fbe92bda41062f29b84 --- /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 0000000000000000000000000000000000000000..6f548d094ec63508c799175b51f883240e3f0c92 --- /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 0000000000000000000000000000000000000000..922a8a4afb367cc10858311f0421f4a1427743cd --- /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 0000000000000000000000000000000000000000..8e79a481f103f7ab82d9fc7e374b58aff52acce2 --- /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 0000000000000000000000000000000000000000..5b2b12d9206424817c06bca1fe81f5f4d420f037 --- /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 0000000000000000000000000000000000000000..dd1103537d4c3676759b3e8ad7c8b215c6e2370d --- /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 0000000000000000000000000000000000000000..3d78c8efe3d278e8d4b93fa42ba2ad0b705006a7 --- /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 0000000000000000000000000000000000000000..059bb4061dc65b5ae7b5f80c8f0e47ebdab6d968 --- /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 0000000000000000000000000000000000000000..b0ede0485cf4e706dbd4084808e37482b2749575 --- /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 0000000000000000000000000000000000000000..475d18c859ca53062ef48ae206a4f2872cdd7319 --- /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 0000000000000000000000000000000000000000..d642ae4d62d90e8e13e58be36fb2c2fa96f0f8e6 --- /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 0000000000000000000000000000000000000000..f8e6847edb9c1163de687ee30db4e102c0cf37f3 --- /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 0000000000000000000000000000000000000000..792dfe8b46791d1a7ec6648bcabf473de90aa335 --- /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 0000000000000000000000000000000000000000..ed658bdb25c4f72ec4514434c166168543146925 --- /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 0000000000000000000000000000000000000000..c69ddb74c69fa01db174ed65c03f92d09be4f4e3 --- /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 0000000000000000000000000000000000000000..5c37d2690af2c244b9fd67c0019f47aee402ce3d --- /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 0000000000000000000000000000000000000000..704dc494793653da99efa2eb9ebb5c1b8399cee7 --- /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 0000000000000000000000000000000000000000..a09720ac5d7faa1e6d0838f91799f6eb8b51a1a3 --- /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 0000000000000000000000000000000000000000..6b7456fcd3d80790a931b6581e0dec458fa89590 --- /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 0000000000000000000000000000000000000000..e356bd90fdf7346f79ab803486c4c485e51e16ab --- /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 0000000000000000000000000000000000000000..8bb5293ff0a3dc820af5815436ebe0eedf2b5786 --- /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 0000000000000000000000000000000000000000..f55d10100126b2547dab91a34bc2064832badbbf --- /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 0000000000000000000000000000000000000000..cfef796909d4c8bf7fdf8b55bfdd0f7fb023dbde --- /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 0000000000000000000000000000000000000000..a7d812825d3ea4ec2b5742e469c15ce23a4d2e2f --- /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 0000000000000000000000000000000000000000..488b49aee47e9a1c114327ab9d4ad194423d4779 --- /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 0000000000000000000000000000000000000000..06b6795dc35c8f94a677ca77cf12c15f9f164617 --- /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 0000000000000000000000000000000000000000..dc7a7ca64aad30072b80e9e3d05407d532e0d223 --- /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 0000000000000000000000000000000000000000..606d01532f75aa0518666e6e7d8f2ad356919fb3 --- /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 0000000000000000000000000000000000000000..6bfdcba48cd06242b6bcbac865680eb927a9f6d1 --- /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 0000000000000000000000000000000000000000..db5c72dacd9a923a9def68e5450d493c4c874b81 --- /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 0000000000000000000000000000000000000000..f8398c1516408125d42870cc0968bff08f07992d --- /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 0000000000000000000000000000000000000000..b3ef7fcc4eb61ecde8b14bf332f6ca4e8b0bcdac --- /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 0000000000000000000000000000000000000000..0f9926619ea167ebc8d4051b0e948078c1c04960 --- /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 0000000000000000000000000000000000000000..6722107580e67dda46ebc18a80eaf98fc735d97f --- /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 0000000000000000000000000000000000000000..6a6386a49eca2e19c9b2d59e7ebe7b9f19180072 --- /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 0000000000000000000000000000000000000000..5bd008f65cfa39d4c71cd56e34d6a19be004ae83 --- /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 0000000000000000000000000000000000000000..2ed2087c1931fcd22c5882c184f91e6f91b07cbf --- /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 0000000000000000000000000000000000000000..c40721fa53fa33a1ea83b4ff08c0eb1628099ced --- /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 0000000000000000000000000000000000000000..b1f8f00be17b45654e23923c7aa457ee9cd0bd70 --- /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 0000000000000000000000000000000000000000..6045baecad1a3309b663c57a1bd1443f811d1557 --- /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 0000000000000000000000000000000000000000..a01176bf56becadb34447b36c8780fdcb64a1079 --- /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 0000000000000000000000000000000000000000..87910257374e05dd9ff39a3e79a98a30d530bc28 --- /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 0000000000000000000000000000000000000000..56d378649390766a5d70dc4b84048892404d5580 --- /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 0000000000000000000000000000000000000000..4dbd477f7592c4e6b39d484b9ceff33500e0c8f4 --- /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 0000000000000000000000000000000000000000..4872fff7a9717c48d6d836ba2563e983971f52ed --- /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 0000000000000000000000000000000000000000..71dd185308398336124fc91408548a93bbb7d8d2 --- /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 0000000000000000000000000000000000000000..e25273b39ce5c61dea4a013079241e98b8777173 --- /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 0000000000000000000000000000000000000000..98d2d066c0a2512d2b8b329f523c1c6790d03981 --- /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 0000000000000000000000000000000000000000..b82b5dded6df93d64e4c2b1400fb088bb393eeb1 --- /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 0000000000000000000000000000000000000000..438a9b9d8cdb68fc09011f953198efeef6e25207 --- /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 0000000000000000000000000000000000000000..6f5c626cfd655ab13257c98b85c959387b3247f0 --- /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 0000000000000000000000000000000000000000..e8998056ab754211597c65e7655464059321088a --- /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 0000000000000000000000000000000000000000..5d651c661db2f984a0569b714d12cc41ffd2c80a --- /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 0000000000000000000000000000000000000000..6afe585d6eba5f2bf4f09523a70d40416bdc9693 --- /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 0000000000000000000000000000000000000000..1853c4bc742d06f4afeaaa71353bcb340902f3ba --- /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 8408c3c216fca678fbfa42f85b244db30be40685..59481a5a69e2759ae7797addcbcc62311bb93e57 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 e1318ccbabe4384488ae49f5268b2a61ff9976a2..8345b272f169a601fa4dae2787f2208c01050756 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 9be0545bb89034cc9fc127caaaf61c01cb2aa61b..d169fa717456a6a0a93786533c492e7da88409aa 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 8a81d14c91f5d57f2a6b93ba3cdfb2eccfeb5713..c713c6d30112964afa455afffbabce290e44dbcb 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 8bbba9104bd5cfd4e421626266af282b1db499e3..4fee1c38236b5a5f0587d9560528930332fb642e 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 b032aaf201404e83d73715dfc7f82d14f4f0daca..b1332339f03f213a217a1fa31144db1e225fae9c 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 0000000000000000000000000000000000000000..7f54eaf1623d01f5be7ab8cd86ffbf0c1c789b29 --- /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 0000000000000000000000000000000000000000..656a7bbab0e846575f822f57a52c03f779b8746e --- /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 0000000000000000000000000000000000000000..a3530bd578cffa9942d8aa1144394e69378f564b --- /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 0000000000000000000000000000000000000000..de0e7421cf9beac1ab916dfe6dae3d43cefd6ffd --- /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 0000000000000000000000000000000000000000..85e4040c561bf9524b10e04aa0b3b9bdea9d8e77 --- /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 0000000000000000000000000000000000000000..0964e3d212109f5b4bb8421a76d4c5ea92b7d783 --- /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 0000000000000000000000000000000000000000..9f2566b43af101299b71d88468a27a10507e9113 --- /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 0000000000000000000000000000000000000000..b4648b9e5be74497ecd7b4cc7a1dd0e1362ce1d7 --- /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 0000000000000000000000000000000000000000..cbe03dce14266262acd56d56fab076271debab71 --- /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 0000000000000000000000000000000000000000..61db26bc5d4230b1758d03f7e1cdfb2fe817f7a0 --- /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 0000000000000000000000000000000000000000..9bebf4d1f5d3c5b19716ac9935818d4417a3cb69 --- /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 0000000000000000000000000000000000000000..9c4cabb3ebaab49e0d029edc6ac9f85550167bd0 --- /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 0000000000000000000000000000000000000000..7bad9bc3aee782e757d63161c1aacebb7aacadd8 --- /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 0000000000000000000000000000000000000000..2edd651f43c1f1f216332a4aae067d22601f3836 --- /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 0000000000000000000000000000000000000000..0b417964cc8ee9901e302ed1d4b9b2705fe9fefa --- /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 0000000000000000000000000000000000000000..88e1c64a0e4f67acca374a72a61f73f9ea1649b4 --- /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 0000000000000000000000000000000000000000..bbbe71530104474612ab06abb38a27a17e8d16ef --- /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 0000000000000000000000000000000000000000..e8da4da069560ba24d4b48ef647505a5ec10441d --- /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 0000000000000000000000000000000000000000..1771e92e4a2aba67166613c0186a7f8bbe340b6b --- /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 0000000000000000000000000000000000000000..2ca7e8a924bd5e8d5a6b5bbc1658eb6e6e3893ed --- /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 0000000000000000000000000000000000000000..ee50673af80a10128b956530180ae46c234d6bda --- /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 0000000000000000000000000000000000000000..e7d1925f542fdaef4131656e2690c6d40fc39c97 --- /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 0000000000000000000000000000000000000000..2b81339f3d7cfccbca65e793bea40ea2e513f353 --- /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 0000000000000000000000000000000000000000..e4ce185724967dffc45fd89876a60024c82cfa6a --- /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 0000000000000000000000000000000000000000..c70b84e558de031e1731289aa02f8732e36b9184 --- /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 0000000000000000000000000000000000000000..e8736f648992aa1e70d112e46fbc78259826f9bb --- /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 0000000000000000000000000000000000000000..23fe0059333030053236bcbb3ad438a223b8bd6a --- /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 0000000000000000000000000000000000000000..1a0f1aab1e599359a4c8f08406aa37449f907d75 --- /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 0000000000000000000000000000000000000000..5d0415d53b9c8231f06297d8b4d3380ddca979d6 --- /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 0000000000000000000000000000000000000000..f64554a4ea8637dc4332bfd91517e9cb24d6c19d --- /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 0000000000000000000000000000000000000000..e88d6a520565ab1c6ae04fa4fa7ea6adda8e730f --- /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 0000000000000000000000000000000000000000..69719d3f82346e86a86a4cb8e1ff3b8dbc93903a --- /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 0000000000000000000000000000000000000000..49fe140efb42e328be28a7d3581e442ff1437ad7 --- /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 0000000000000000000000000000000000000000..98603eb5fd09389f9c7aae48665d792746966536 --- /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 0000000000000000000000000000000000000000..f8cda7fef324bbafa75ee0290fa3e68da2042913 --- /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 0000000000000000000000000000000000000000..935ef0db5306e7373a9480c24fc26ad535961227 --- /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 0000000000000000000000000000000000000000..5d79a23893cd20a59dfdd58d00be3d7e7e8480f0 --- /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 0000000000000000000000000000000000000000..eef60cf224a43655fa569997b6f4f808b6139ea9 --- /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 0000000000000000000000000000000000000000..7c86dc9e49ede42b4fa8a482b917655d186576f8 --- /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 0000000000000000000000000000000000000000..079d3bf08f64054f94b7b31cf51f1063ace4f7c9 --- /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 0000000000000000000000000000000000000000..8bf9593bff3b3f0273e0f3aa299ad8bc51c86548 --- /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 0000000000000000000000000000000000000000..2045a7967f2696aaacca9aa4678f72c22359bc10 --- /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 0000000000000000000000000000000000000000..c4a92683f7c7c5b2820c619142a6dd7c8e1a2b2e --- /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 0000000000000000000000000000000000000000..6bb2ecc3086f3cbb67b65c111f1e79ef31de7673 --- /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 0000000000000000000000000000000000000000..3315257db594738a62952900da6506d87d6eca54 --- /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 0000000000000000000000000000000000000000..7f9e38bf2a10dfd5e2583be6ea7ab1068640e195 --- /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 0000000000000000000000000000000000000000..ead8becf47c119877a443a474d2f39e02192ece6 --- /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 0000000000000000000000000000000000000000..d2eab8eaa613932249498010b4287f51afa380e4 --- /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 0000000000000000000000000000000000000000..6c18f2fcbcd78929d019903902401563ccd108be --- /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 0000000000000000000000000000000000000000..e0a73466d9872b137c9e3aba289fa4b74ef5c485 --- /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 0000000000000000000000000000000000000000..4eadca978af3d1d8b84abc40f3213a1791239e66 --- /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 0000000000000000000000000000000000000000..543f3b1989d48ebabb95e67762223b7649232a55 --- /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 0000000000000000000000000000000000000000..0d1d428f8eb794bafb21c833f560d2ff3030779b --- /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 0000000000000000000000000000000000000000..fe51c81648af0fafdb3ffdf12f006575729eb4c7 --- /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 0000000000000000000000000000000000000000..b2cf5e71cafed6ac62feb5dca424f1a2d0e1350f --- /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 0000000000000000000000000000000000000000..382b5569ff3db0dacf2ea8317bfb79005d5724a3 --- /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 0000000000000000000000000000000000000000..92a014e526cc9103bae79200d90bb2e264907868 --- /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 0000000000000000000000000000000000000000..1f563ccd07b19c297e2f6d9a585998410f00113e --- /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 0000000000000000000000000000000000000000..3975d4a2ad1502986c000738c0e7b07d3d4a0e5f --- /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 0000000000000000000000000000000000000000..c84c725c7573ccbf8825a91b9095aa398dfff242 --- /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 0000000000000000000000000000000000000000..eac95ce79747fa4e849c675e2a1aad20e044b29e --- /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 0000000000000000000000000000000000000000..5023a8b14e6734e536b41ed083d119e09975e170 --- /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 0000000000000000000000000000000000000000..6196dce2530e73df9239954329cfec6fb2c406f2 --- /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 0000000000000000000000000000000000000000..243efb3bf9a3f4443efe756f93dd216c57d28b18 --- /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 0000000000000000000000000000000000000000..1be6be244181b208b34c6c98cb72dfc76b96775a --- /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 0000000000000000000000000000000000000000..58a00df78882001ca5afdf44e9e2b1bcd8b5238c --- /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 0000000000000000000000000000000000000000..7e82b1c518ed3fff5790436310bb131eee0aac61 --- /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 0000000000000000000000000000000000000000..5dec4751c6625f156c28d761e68b0131b257be30 --- /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 0000000000000000000000000000000000000000..20d5f9575415a15054fb48deb1d64f8f6778397a --- /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 0000000000000000000000000000000000000000..c21023b9f8655b8707a2fd2c153ee06a8d888f30 --- /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 0000000000000000000000000000000000000000..f021489c688d1ae322393747af83baae41aa3bc9 --- /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 0000000000000000000000000000000000000000..d05cf25999a5808f7e43b5d922edf1b86ba11f6a --- /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 0000000000000000000000000000000000000000..20c354bf1778c2fd5d1936e60654f42f57ea7d8b --- /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 0000000000000000000000000000000000000000..7d72c120f4c99faf66c0be9ed90087f4e866c453 --- /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 0000000000000000000000000000000000000000..7566db56dea57be09e3167b67a8f88ca30f11a20 --- /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 0000000000000000000000000000000000000000..0f711f681a291ca791a7d414d43ab89a572d9d33 --- /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 0000000000000000000000000000000000000000..8b5c5a2cc08f6491860a40a2e6a990aca7bbecb2 --- /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 0000000000000000000000000000000000000000..6879a5b0899ffb0f1c07eb57acb25ab7e654420f --- /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 0000000000000000000000000000000000000000..1438bfb4040754f46bda72187c834a46c462f99c --- /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 0000000000000000000000000000000000000000..7da7ef60972f230decfbbda9b7636e88383a38dc --- /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 0000000000000000000000000000000000000000..31c1286aa409baa2a72510a91742e2f385eebecb --- /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 0000000000000000000000000000000000000000..dd55df88fadc36113df18f522d70b54fd24133f9 --- /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 0000000000000000000000000000000000000000..b2b24ac10a1ead481fc79bdeec67f0ab28ac52e1 --- /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 0000000000000000000000000000000000000000..17f8e31faae9b6862a035db0280f1d3a481c58d4 --- /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 0000000000000000000000000000000000000000..a0fc092f469e12c48b46f801baf9bd3eca197e75 --- /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 0000000000000000000000000000000000000000..e167a9b1c19f095f29b9ded50f93427b0d44676f --- /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 0000000000000000000000000000000000000000..17e1fca86f00aef710419107f43dc8c67023ca06 --- /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 0000000000000000000000000000000000000000..609356f5d24fa363507d5a17c8f1c3b09e204c3f --- /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 0000000000000000000000000000000000000000..360b449d81344121651608f5314aecfad2f97bc9 --- /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 0000000000000000000000000000000000000000..236702f126884ebc6ebebeed68737defdeda25ad --- /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 0000000000000000000000000000000000000000..8dc924455359dad1baa43e17330a86f3542de201 --- /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 0000000000000000000000000000000000000000..a366cd81bb5513137bb9627ea369c65feebbd752 --- /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 0000000000000000000000000000000000000000..9232f3207d63dbab360c4d626c461fdbd98c7750 --- /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 0000000000000000000000000000000000000000..739f8568796200f1dc130fd069cbb4a5266271d2 --- /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 0000000000000000000000000000000000000000..3bc8c2da8f71694ace11178cf2051725224827da --- /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 0000000000000000000000000000000000000000..0c20041c363bfb8cc3cc8994b70747df0f5c040b --- /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 0000000000000000000000000000000000000000..87ec23c8cf6ae45bea2473c11c619b8e8b36de16 --- /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 0000000000000000000000000000000000000000..a7c52dade9248808f3bb4ce7b7552cda2757765f --- /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 0000000000000000000000000000000000000000..417bb21e6d7429e119f0398195b7eff6fafb03a9 --- /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 0000000000000000000000000000000000000000..e1041375de70b7cb570e82c7cf31ae4a5041f3d7 --- /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 0000000000000000000000000000000000000000..94259921fab5e8c00e91b2e05b143bbd96af5202 --- /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 0000000000000000000000000000000000000000..47cb23cb55d16ceb78314397f0e768213d09a3df --- /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 0000000000000000000000000000000000000000..8fc6106a8f18a8ef02d374c3c9e36a9ed9c3948b --- /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 0000000000000000000000000000000000000000..1a344a0883f2e869dadb41dea6f949fa400629f9 --- /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 0000000000000000000000000000000000000000..f8c09baf3d9a4e3d994e18182a30373126146ec8 --- /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 0000000000000000000000000000000000000000..75107d8781556c244141325ee5da616c6220fedb --- /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 0000000000000000000000000000000000000000..bf57189bafb1de2ca5cbf2e455f71619236e874e --- /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 0000000000000000000000000000000000000000..c11cdff6c1764034ed751b800eef2d35d4fe6962 --- /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 0000000000000000000000000000000000000000..252d9b849befa629f29e61c415de14423d014086 --- /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 0000000000000000000000000000000000000000..df042c16ea328ef41437818c81f990ec934f562c --- /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 0000000000000000000000000000000000000000..d127d9592361f71bce075ff92a32e62fbe33bea3 --- /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 0000000000000000000000000000000000000000..826f386283b750413e61a3d98c6b8c325fb3bdf3 --- /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 0000000000000000000000000000000000000000..c931725f0c748f135a392e7c3dbd6196f51bebd2 --- /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 0000000000000000000000000000000000000000..01cbbe73b772eecdc5a097949f6d5de45a7de724 --- /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 0000000000000000000000000000000000000000..0b77e3fc7ea4bee0958a11d87182f58c1b892a32 --- /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 0000000000000000000000000000000000000000..22bd1d2f245c0637ef09269e67abcd932620edbe --- /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 0000000000000000000000000000000000000000..7d74017c3120ede11965cffaae46c5d73c82f038 --- /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 0000000000000000000000000000000000000000..1deccc5b1abf1cec95c5faf35f5805ae7ae06e25 --- /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 0000000000000000000000000000000000000000..0dad2544587fe5f4b6f2bce4f06f132c9ee8a6ee --- /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 0000000000000000000000000000000000000000..bc3700192fe512f0c9f44ac8a000e7273cc97d02 --- /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 0000000000000000000000000000000000000000..c136a3c5b55bef61e9fbb3c722cdb06d5edb2fb0 --- /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 0000000000000000000000000000000000000000..45add083ad9368be056b85461729816742c52320 --- /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 0000000000000000000000000000000000000000..e8c27b3f371abc50b0374c186330bd446b97dd04 --- /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 0000000000000000000000000000000000000000..52d2e830c6954b677f6604547bfa63ff7107d293 --- /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 0000000000000000000000000000000000000000..85a313e9a16f73d05b96d1a1e2f70426386dc342 --- /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 0000000000000000000000000000000000000000..1fcc444fe49673b6265a066a4eabd2de792766ce --- /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 0000000000000000000000000000000000000000..89f39cb2b1d525c01a47c29586c244475cbc26e1 --- /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 0000000000000000000000000000000000000000..80eb075d58e394fcac0bfec21b855a97c8730f97 --- /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 0000000000000000000000000000000000000000..0dc125be6a9a8e1622dc5e20805e757f3aa3e72f --- /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 0000000000000000000000000000000000000000..85ac5b4f0f51917c815fa259780d58799880f041 --- /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 0000000000000000000000000000000000000000..3c853fca28a015db343432fd8ed669e6d9a96506 --- /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 0000000000000000000000000000000000000000..babb2b007be39ed432d44ec0620168c860670d0c --- /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 0000000000000000000000000000000000000000..ce33a205014f477b07c1943acdd5da7a7be11169 --- /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 0000000000000000000000000000000000000000..ceae2cf9892a3f540fe940b0805e2198177e43db --- /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 0000000000000000000000000000000000000000..642d48ac66b9f6897f233506ffb9ecf05016e181 --- /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 0000000000000000000000000000000000000000..3006c6533a00ff2f94eac8754fa5c954e05bb453 --- /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 0000000000000000000000000000000000000000..4067601e56bf23c296e6ac6ab494d233d11c1228 --- /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 0000000000000000000000000000000000000000..234472198db7cd720560b51bf091ece03fba4d93 --- /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 0000000000000000000000000000000000000000..4cd1da13f2b833dd199d9b59e00699ac7a2d8b2d --- /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 0000000000000000000000000000000000000000..ff09d76d11d546eb7d1a3fc4ba5e212db2fb5442 --- /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 0000000000000000000000000000000000000000..60f82548158c7bdd111927d0159f9b00e3ed4a73 --- /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 0000000000000000000000000000000000000000..71543570f7ce7beca9088754ef5349e0963b5529 --- /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 0000000000000000000000000000000000000000..3226d5a379d2c7de537dffd7a59f549d86421796 --- /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 0000000000000000000000000000000000000000..d7d2b6b4b68e9990adac9f8424732e05fb8f9a85 --- /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 0000000000000000000000000000000000000000..a95ec415be97458823c058d3c2dcd3df18a57400 --- /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 0000000000000000000000000000000000000000..1cc948ddcadf74e2821436611599779f7c4b63db --- /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 0000000000000000000000000000000000000000..fbcba2f424a24dec81cd0e957a6a21f8498b39ff --- /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 0000000000000000000000000000000000000000..40d681e6dcc2941475240fc5c634df1b31ea0536 --- /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 0000000000000000000000000000000000000000..cd765f362cb92b95374b66464eafb1a70bfd6a04 --- /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 0000000000000000000000000000000000000000..be3ed06fc7a0238994df74d66fed260259f6657b --- /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 0000000000000000000000000000000000000000..5ab53aef28e5a68dbd5d7985ab7bc364b3ee1120 --- /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 0000000000000000000000000000000000000000..b7a336eb5978895b4ff9dc764e576e9b17dfc490 --- /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 0000000000000000000000000000000000000000..7b2102c632f27f74f2b1273a6c0587eb76e66855 --- /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 0000000000000000000000000000000000000000..4e3a8f1e7bfbbe46d4ecab4a87127044479efc43 --- /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 0000000000000000000000000000000000000000..b0f58a83daac863053d46fef40ae10f547312ece --- /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 0000000000000000000000000000000000000000..134830c5f76c559b3abcb83d9552d99ed5f23018 --- /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 0000000000000000000000000000000000000000..63b30ce20a51b03de32a9f08528dc1f6d9756bbb --- /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 0000000000000000000000000000000000000000..6b5818803fba39881a5ab77533837e540d1e610c --- /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 0000000000000000000000000000000000000000..7aba90e7dfa84b37b8485b531180137a1c2a61ad --- /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 0000000000000000000000000000000000000000..e03d7c38ebadd32915d90b543036edc19bcb9e34 --- /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 0000000000000000000000000000000000000000..2a4824f43370ae7616ae2dbce8bfd11ba8f4f5a5 --- /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 0000000000000000000000000000000000000000..1d88429965b706170620b38f05f8bf5f5dfac3e7 --- /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 0000000000000000000000000000000000000000..1a23071f5b8c90becd21275dd1be2af77d373c30 --- /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 0000000000000000000000000000000000000000..e1db3b156d8fe838fcf18ce3cdb241dc58ba7550 --- /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 0000000000000000000000000000000000000000..e9cf726dab4c4917f05fad81c2bccde71bae6a7c --- /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 0000000000000000000000000000000000000000..2148f569cca2f69c8f6946357787226f5c0d2a60 --- /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 0000000000000000000000000000000000000000..cfe7e1831ae857c71e490123fb62e696be19ff8b --- /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 0000000000000000000000000000000000000000..5ddc15574435dc7725783a7261789c5f46a327a8 --- /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 0000000000000000000000000000000000000000..3146b37076095b0e5871cfed44325d106529a284 --- /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 0000000000000000000000000000000000000000..68d4e1e0ff10d796c3f6db95b1c5fea1d7157c4e --- /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 0000000000000000000000000000000000000000..f2edbf1f4d61353290f703db0bd9142cf1cd0ef6 --- /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 0000000000000000000000000000000000000000..0bc2e6de20bb12a3fcdc69747a6288d9c99fffc0 --- /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 0000000000000000000000000000000000000000..175a297d01b70a15c53a3dfa9b3b522a11c9a487 --- /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 0000000000000000000000000000000000000000..fc0e2ebb9728699f5443c39625ff03f9673856bd --- /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 0000000000000000000000000000000000000000..6c9da29d6cb16aaded7e84a442615a0cda049cd3 --- /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 0000000000000000000000000000000000000000..6eff78dfaae82cc0cbaaa30efae9970976212560 --- /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 0000000000000000000000000000000000000000..9d04d15b289b80df8e35b6875d785a8a97961703 --- /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 0000000000000000000000000000000000000000..3e7fab107a65ef09db761422b0f82a4089bf4278 --- /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 0000000000000000000000000000000000000000..fe9e826b3494e0583ac2039c5121e7c50624486b --- /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 0000000000000000000000000000000000000000..40c02af37d45e84d07fc56c23fc55ab074f44299 --- /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 0000000000000000000000000000000000000000..c0c4ddab497e2a43f8ca187fdf8c52ab89cf73e7 --- /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 0000000000000000000000000000000000000000..fb4ebc39e663e9be03d4ac31356c4d5c83a75eb5 --- /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 0000000000000000000000000000000000000000..2ec90abc6926ea532a9e26b42516f3344f342c79 --- /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 0000000000000000000000000000000000000000..0a6dd0f70291ba06fc9842cd9dc94a60f9e3bf82 --- /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 0000000000000000000000000000000000000000..6425c946b249581c6bdbc9ae81102517d4ffe72e --- /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 0000000000000000000000000000000000000000..2f06b8014b805eeb12da621eeb9ef7292183b933 --- /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 0000000000000000000000000000000000000000..af935dd8e07358f7b70e1c6db4737a98fe6deedf --- /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 0000000000000000000000000000000000000000..cd30b328f89255f75ea7b41449e29fbb402ee083 --- /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 0000000000000000000000000000000000000000..8b6a6770d9c09e93ec9112c5dcd2924b09d5ea5f --- /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 0000000000000000000000000000000000000000..b486561456ea6654d6b06f973d9f45330e92bd84 --- /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 0000000000000000000000000000000000000000..e3889be32a9fa1a4f4e94a0ca8ebb3d355f7252c --- /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 0000000000000000000000000000000000000000..0575d13009fa01d239e8c59efc299fd17483169c --- /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 0000000000000000000000000000000000000000..768e368a2c181a9bdb263655b1ca06f2bcf95e8b --- /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 0000000000000000000000000000000000000000..d7d60dc90cb840e0c83ee80603b280fe2248e5b6 --- /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 0000000000000000000000000000000000000000..1e1c5ebc9145ac16a7319b18ee2158644aaaadb7 --- /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 0000000000000000000000000000000000000000..118955d1eed1ccb848f3b402abdee94690eeff1c --- /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 0000000000000000000000000000000000000000..a8de26d84042e35006a3576ba24a8e3a18d7cdcd --- /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 0000000000000000000000000000000000000000..bb305c50eaadcd94e36fd2240b4b98af6afffd59 --- /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 0000000000000000000000000000000000000000..05bb7cd1b6deb53700419e215feba3d6a0f2eb85 --- /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 0000000000000000000000000000000000000000..56718349d7f4952576f01bb12091792df9afd63e --- /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 0000000000000000000000000000000000000000..a37b38575eb202d14e3b7c1c67b2962914f6c2d0 --- /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 0000000000000000000000000000000000000000..2c09607ef8a298e05da827213f23766a275016d7 --- /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 0000000000000000000000000000000000000000..7cd67608c1676e0ae3c7e43f89629db47abe9e0e --- /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 0000000000000000000000000000000000000000..7bbbb0ab5f98a7b81c39a1056d6aa3e59eb72b14 --- /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 0000000000000000000000000000000000000000..283d00405904a629a5abbff485011987ef52cb14 --- /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 0000000000000000000000000000000000000000..b68913f81d91b8de1d4219d997c6f3609b836d9b --- /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 0000000000000000000000000000000000000000..717d75647f4aa5a543261e63adc294d8b184834e --- /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 0000000000000000000000000000000000000000..757847d9ba068d5f6ad24e050f32962b1bf35f0a --- /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 0000000000000000000000000000000000000000..e4c4df308544475e5699ae90a3667413dda6eb5c --- /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 0000000000000000000000000000000000000000..081afd61192a784d26f6195ce3eaa30d889b8563 --- /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 0000000000000000000000000000000000000000..5b96e08067b9e9a75981054dee0c281e3f30623f --- /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 0000000000000000000000000000000000000000..2f6fc5dfe766247384830d837e772f0fbfedc291 --- /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 0000000000000000000000000000000000000000..98932ff0eaf9074f0e4612c8a875c9440b785de3 --- /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 0000000000000000000000000000000000000000..451cb5639ecd97d378847bd21ccd8e46bc28a216 --- /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 0000000000000000000000000000000000000000..d1a3552bcb6438661edd7c7c068ccb8af0a16608 --- /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 0000000000000000000000000000000000000000..ac7fb4a0a764cdc64f7fe8887bab760dda27ec96 --- /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 0000000000000000000000000000000000000000..9f281c633d7903928c64a3b057afa36a220eeb6c --- /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 0000000000000000000000000000000000000000..6af18adad82a25c076e6905c4b7e8ca2f3748334 --- /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 0000000000000000000000000000000000000000..d2f64e858449bd1e6cea9fdfb3d3eb399dc96a52 --- /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 0000000000000000000000000000000000000000..e13f6341fc4e7029e7f35074f50ab05c880d3b40 --- /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 0000000000000000000000000000000000000000..2d7c18a1a826950c25ea4f4c7e07b2d661447334 --- /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 0000000000000000000000000000000000000000..8e629bee9e17603139f2a0d53e448a87dc9995ff --- /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 0000000000000000000000000000000000000000..1dadb5eacce053d5b912e851902996955677aeba --- /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 0000000000000000000000000000000000000000..f5776736aef4b878bee7390465ae804040c9f300 --- /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 0000000000000000000000000000000000000000..c2f2584f387de2d107e2c11705eeb24d141c3001 --- /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 0000000000000000000000000000000000000000..c007d7f6c69daab8e3170011dabeeeea30ea6674 --- /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 0000000000000000000000000000000000000000..0f210c78f94954cb3d9ae9f40a4f7842517e5b4c --- /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 0000000000000000000000000000000000000000..40bdcc826270be114fe101094e7fc2cdab4ef266 --- /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 0000000000000000000000000000000000000000..772be461dd4c272f32b401d6aee0d9ffd920c903 --- /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 0000000000000000000000000000000000000000..63243c99d2144271403e1b24319a827840410083 --- /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 0000000000000000000000000000000000000000..c52a4aa1f3801947c3e2fff526f6474141644651 --- /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 0000000000000000000000000000000000000000..dafac02645d29db74ba17d4ac34c978ce1a6d511 --- /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 0000000000000000000000000000000000000000..8cbe4f1e5f5d475501c740268e53040c514c3adc --- /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 0000000000000000000000000000000000000000..2fd33d5a5d8292a12193c0a18046dc7789827e6e --- /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 0000000000000000000000000000000000000000..36eef638254697ac4ff4c9a7bda03dfa147e628e --- /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 0000000000000000000000000000000000000000..b5d176a8c27ab986eead90a2624c77ead54c97c5 --- /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 0000000000000000000000000000000000000000..f898cfa0f58b95736674bc97f0236957a0e2cae7 --- /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 0000000000000000000000000000000000000000..76bb324278c74f6b0fb5f46a28642d9fb953d11a --- /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 0000000000000000000000000000000000000000..75faaec511447f42e4b9220455671584128ca0ae --- /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 0000000000000000000000000000000000000000..53ae037297dc320d42372cc091eca7341896ceef --- /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 0000000000000000000000000000000000000000..0bb4aad4957cb770d9b6263b55314be233002a73 --- /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 0000000000000000000000000000000000000000..29dcd4272757a61a1538d238fd857574f6fa8f53 --- /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 0000000000000000000000000000000000000000..36189599bed20512a8cb7d79a678557da9207c5d --- /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 0000000000000000000000000000000000000000..95f957ee314b8f722a4bdbe6b01cc385d29e5a0a --- /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 0000000000000000000000000000000000000000..f7177e1085b99d02d225e7ee7830c0b8854d6f02 --- /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 0000000000000000000000000000000000000000..9543d4c8e8201741287c6a186d6217e279d6d38c --- /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 0000000000000000000000000000000000000000..c3248b36f93ffc90e073f5f40b14acfdf9df5c3f --- /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 0000000000000000000000000000000000000000..dc44c64f836f24fc27160961a7fe7bba9b00069a --- /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 0000000000000000000000000000000000000000..e8a3b71c638aa22448234411a6e696441b9390c4 --- /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 0000000000000000000000000000000000000000..22b373558ca9ee157024c7d2ae7e7c0f8f0e2b90 --- /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 0000000000000000000000000000000000000000..25777dad0e418c0cc2c9c971714426b0fcb862ba --- /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 0000000000000000000000000000000000000000..af66a349ded52c65110b0e593e0549c49518031a --- /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 0000000000000000000000000000000000000000..85675cbb1981688ba11159af04df4cee44e4972d --- /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 0000000000000000000000000000000000000000..d2f3bc3f4d4a260172701b94fed4133a79511690 --- /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 0000000000000000000000000000000000000000..caa5d47303de2a556e44956d152dc9f646ee1b79 --- /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 0000000000000000000000000000000000000000..2912c0525018b46ba09c6b49563c84e05aa78cea --- /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 0000000000000000000000000000000000000000..929e8287900d5fb5d29d4e7807bbd50e1d950f6c --- /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 0000000000000000000000000000000000000000..25d4e659fb442495bf10454f0a809a6d26f9d47f --- /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 0000000000000000000000000000000000000000..982ec5eeac3de4ae49a420e9360a36f3c1b280dd --- /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 0000000000000000000000000000000000000000..94a8beb0451b8ad315e7fe5eaf566c488788b811 --- /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 0000000000000000000000000000000000000000..8306f8a8a7991f575b298271f09f23dc7fca7ab0 --- /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 0000000000000000000000000000000000000000..b02aef39aeb4f929cc1ca5aa635f3048fcd6046e --- /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 0000000000000000000000000000000000000000..5e484416aaeae2b196cf95a80dd705013784f812 --- /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 0000000000000000000000000000000000000000..3a8df940a65100848733a07dc900575563320213 --- /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 0000000000000000000000000000000000000000..ee735f11093bda6a4e3a8437d84320fadc405c35 --- /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 0000000000000000000000000000000000000000..809acdf70c4022d2f69ba360b4de32a2bafa369f --- /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 0000000000000000000000000000000000000000..7459894ef03069449c99285781fd2fd3880e6825 --- /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 0000000000000000000000000000000000000000..78ff8e5d4a04045417d0a2f17e1d74de34a7406a --- /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 0000000000000000000000000000000000000000..b8d3db60d7b3a505e9f6492862c2464c718bfead --- /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 0000000000000000000000000000000000000000..baed4b8556396b847fd568630048ef8ed4a139e3 --- /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 0000000000000000000000000000000000000000..04a103ab07b8fb878671a28959167a8cacf52965 --- /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 0000000000000000000000000000000000000000..b93b40ec3b6b03e1365662c7f8a573590c24f9b7 --- /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 0000000000000000000000000000000000000000..18086240579eadc003678a39b0b0710d605d3a87 --- /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 0000000000000000000000000000000000000000..df02c83a581af7438821f7cb6d44f6db26805c38 --- /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 0000000000000000000000000000000000000000..d4556a3bd12c9c6fa0d764f9a7df02d40867de22 --- /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 0000000000000000000000000000000000000000..9241505105bc5728e67a971a0afa65e07703d33c --- /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 0000000000000000000000000000000000000000..060944ecfbced9b6e66b9161c054b300790cd22b --- /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 0000000000000000000000000000000000000000..5dd3e77b24e5367bac5cd9fec6ad1a5bed253289 --- /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 0000000000000000000000000000000000000000..0114e9b6c372873ecbb95d1e9c91957587314c4a --- /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 0000000000000000000000000000000000000000..a5025ca67c0ab0582ca04eebbf568946026f23ee --- /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 0000000000000000000000000000000000000000..4239c2fb637b9330ff33f5b6e3e0ab5c7f919dab --- /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 0000000000000000000000000000000000000000..737b821f50d67c3850559a5996b519a8b475ee60 --- /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 0000000000000000000000000000000000000000..987083b87ed3ec17d064830b9bd1f910327805bc --- /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 0000000000000000000000000000000000000000..3a830d3244a3f079e3c8a84b8e3c35f72d956141 --- /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 0000000000000000000000000000000000000000..47baddfda1a9f01c7d34e68d7f35619de0c95ad4 --- /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 0000000000000000000000000000000000000000..a3cb1672251c4f87230e63b372420a518a9554cd --- /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 0000000000000000000000000000000000000000..372f7a2ae86113d9b2e8de878cd914154f8342fb --- /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 0000000000000000000000000000000000000000..2c010e627c3bb2ae3ed51ed04753f18707d6bc5e --- /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 0000000000000000000000000000000000000000..52fc578146260ed6d63ba03cdbeb7d27ae92ac87 --- /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 0000000000000000000000000000000000000000..37da7c3f7a109bfd6e637486be416296d18e6c7c --- /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 0000000000000000000000000000000000000000..54bb0c3a05c64dfc22b16f1e8a04e58980ea4e13 --- /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 0000000000000000000000000000000000000000..87e8e9916784d46ee9fd753d18b843ff0d663d70 --- /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 0000000000000000000000000000000000000000..617bd3cc0fbe32b6bb91ff65d8ac359d5ffdbf8b --- /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 0000000000000000000000000000000000000000..ace13c8c4f54818f90b5fea3284f8aeeee55bb45 --- /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 0000000000000000000000000000000000000000..38f80bfdcc24cb55b1e99fb347255192e28f4e9d --- /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 0000000000000000000000000000000000000000..42818dedf91cdd655b0a5d819323a109eef1edc2 --- /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 0000000000000000000000000000000000000000..53990a9df45524884a3451ad0613b65536b778bc --- /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 0000000000000000000000000000000000000000..d880f540d9592c19d8a86ef8412b73bdecf24c3d --- /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 0000000000000000000000000000000000000000..d80521150c6d54703499b679e3aef1df21702d61 --- /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 0000000000000000000000000000000000000000..72bceed2629fa4493b018a5c63a73a12cbe604b6 --- /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 0000000000000000000000000000000000000000..1153d3891e62f3dbcb3f6a04af0ab8bdc37bcaf1 --- /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 0000000000000000000000000000000000000000..b6e49570bbe6f59d2feac290f26e2df88ec08c8f --- /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 0000000000000000000000000000000000000000..2e431718d2ef190a7e134c3c176b95462d3546cf --- /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 0000000000000000000000000000000000000000..f61054fd2b517ec7ea6fa76d2d812ec0000821db --- /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 0000000000000000000000000000000000000000..e5f43a3c8ff48085e8144f2178249c5c97c89ab8 --- /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 0000000000000000000000000000000000000000..7f7fa28743fec3c752d9fcd3bab0d4cfdb4a41c5 --- /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 0000000000000000000000000000000000000000..c318d0e86c24fbdecb4a0047106254bf6136b158 --- /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 0000000000000000000000000000000000000000..03f4a09e12f95ce5eb8238faf95773659e912fa6 --- /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 0000000000000000000000000000000000000000..bc05cf0bf120f4806791645a20c73336a8d5b3f2 --- /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 0000000000000000000000000000000000000000..9bd2588345337c8f2c0e05b5a3663e0d396f7893 --- /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 0000000000000000000000000000000000000000..08fb22f2d71ddb9e7d339a5b859947aa3b4cd515 --- /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 0000000000000000000000000000000000000000..caf6196bc2328e770076646bd40211668f649573 --- /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 0000000000000000000000000000000000000000..4c25d466377c986a45b48fb5b7f1062142c8dd95 --- /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 0000000000000000000000000000000000000000..42d668b69cbcc489fd92c85e9f9a048d0b75a9cf --- /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 0000000000000000000000000000000000000000..830f5dd7d6168e4018cc0011b201801d8007e71e --- /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 0000000000000000000000000000000000000000..4388d6ef44a8cf1995c0e8fd02f98897e2291198 --- /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 0000000000000000000000000000000000000000..de5d0b194e4383b8bbe94406eea258f2a391147c --- /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 0000000000000000000000000000000000000000..5765b5f1c3e33fb3a6be3a3e62a75d0bb10f59cd --- /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 0000000000000000000000000000000000000000..3c3f38632f71b180069ef5933752218d917af223 --- /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 0000000000000000000000000000000000000000..ed2c057ba4c1ed1f493cc7a68608b26d4b4f57c3 --- /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 0000000000000000000000000000000000000000..168cba0265d52bdddd8aabcfaadc0739222a0eba --- /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 0000000000000000000000000000000000000000..3f4c94792f0ad83fb597c15fb59d2c28e2d18e0f --- /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 0000000000000000000000000000000000000000..4852c50edd20b647fa24486e1374c99043c29bdf --- /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 0000000000000000000000000000000000000000..abd2fa5b1eab1930e4b753549b3f7489749b2db9 --- /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 0000000000000000000000000000000000000000..3578c4bb672c80b84544bd5c20f12e46b43f7aac --- /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 0000000000000000000000000000000000000000..10e2ddb712900ccfe443bacfdbeed06ffe4d331d --- /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 0000000000000000000000000000000000000000..cb4b7d665f89dfd420a480a2114fa7cb32aebd95 --- /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 0000000000000000000000000000000000000000..69d8c12ac05e86e2e8c9d30b285178241ac2b9d1 --- /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 0000000000000000000000000000000000000000..afa62bb71079261f45dde846ae5b761c6ae2c76f --- /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 0000000000000000000000000000000000000000..12ad16583f6f182555b96a24160a6f3d0d21f044 --- /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 0000000000000000000000000000000000000000..f46c20414342df28787169d4011f525b02397029 --- /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 0000000000000000000000000000000000000000..5b1c987504aab7600dcf7b2f5dfb87231f70faa2 --- /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 0000000000000000000000000000000000000000..79466912170ffe20d30da2f34b4f71b9ffa873a8 --- /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 0000000000000000000000000000000000000000..1ac47e6e745604d5cea88a5cf84076d53a35c4be --- /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 0000000000000000000000000000000000000000..bd795b6dd3ec8a12474d9d44e378af1f7d47e831 --- /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 0000000000000000000000000000000000000000..8a63a56fbe1b6d0c499ff25ef2ae2abd65974b5e --- /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 0000000000000000000000000000000000000000..102b58e441ba9c042b8b1ecfd596ebf064c4c485 --- /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 0000000000000000000000000000000000000000..d4a11447c56cd91f96b9a2f2d40168a4a0c43756 --- /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 0000000000000000000000000000000000000000..889c7292c3e6f09158eba1f705ee735490e9a69d --- /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 0000000000000000000000000000000000000000..ec3f693565e2e5f321480c85b8b1a646d7240b92 --- /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 0000000000000000000000000000000000000000..0c5345c9c580035d6fb5973275a8cb0e50fd2ba4 --- /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 0000000000000000000000000000000000000000..96a45bf66c74c782257c1c1b197d401df08ab15e --- /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 0000000000000000000000000000000000000000..2a92e17e822b1d3e01942d7e0db48669f112053a --- /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 0000000000000000000000000000000000000000..38a0e5337333b337fc44d72be89abe2cc730e022 --- /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 0000000000000000000000000000000000000000..9eeaeadf17ca52f55909226517f2b192e20d03e3 --- /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 0000000000000000000000000000000000000000..8a7417b07afba3d0c8c46888ffaccee73184da34 --- /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 0000000000000000000000000000000000000000..5573caa526352733aea9b5da0c88c798eba4c584 --- /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 0000000000000000000000000000000000000000..707721d0353872e85fa77e546c205abec223db42 --- /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 0000000000000000000000000000000000000000..68b6892202193fff3576e6cd57ced9b1b3bbf6ac --- /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 0000000000000000000000000000000000000000..7c0dea858f1d1a8cad9d05e8dc405c8aa9fcac3f --- /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 0000000000000000000000000000000000000000..cd078ee0318feb90fbfd74201e0505d2ca011d1b --- /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 0000000000000000000000000000000000000000..a3d665cd2bce33813ee252d9c03d202af758239e --- /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 0000000000000000000000000000000000000000..99f8ab614a80218a00fdd6258f083a19d367d095 --- /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 0000000000000000000000000000000000000000..a13a54cada3812ac08d1425b8c0eda178d380051 --- /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 0000000000000000000000000000000000000000..3636cfbb80e0b6eefee6528bad7eafced544cb10 --- /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 0000000000000000000000000000000000000000..31ac055f473a5d761410efc4c19b7ee527144030 --- /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 0000000000000000000000000000000000000000..01e4b3a4f311924f136b6bb96feb3413236c7724 --- /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 0000000000000000000000000000000000000000..0940452eec843edd2eccf08d482b5092d55531f3 --- /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 0000000000000000000000000000000000000000..c22ff944c53d260df9aeb715df4b7698a639ef3f --- /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 0000000000000000000000000000000000000000..d354be54de107d516475a3ac4afb28de6fe46ffe --- /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 0000000000000000000000000000000000000000..441a778ab3069c469f7d89b591afd66a776a2f20 --- /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 0000000000000000000000000000000000000000..5cc7fff69bf893399f74195d2b0b1738cc5025ff --- /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 0000000000000000000000000000000000000000..e7b85d5faaf2b7d74d06f66ffaa95d9e95cd957f --- /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 0000000000000000000000000000000000000000..968f0693b142f5801d9fe256a6ae649dd159f6b0 --- /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 0000000000000000000000000000000000000000..884b345f7ab610f7855e532de66c9506008589ef --- /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 0000000000000000000000000000000000000000..adca37ceef65e38ae94ba8a7251274766d2046b8 --- /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 0000000000000000000000000000000000000000..b80a231a71ab29d50188562791fd9df9e076f26c --- /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 0000000000000000000000000000000000000000..e89f67108cd682dcfd5820aba6aff6fbdd6e14da --- /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 0000000000000000000000000000000000000000..9ebca5bf44c9befb83cb08113db0c0d80be83f57 --- /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 0000000000000000000000000000000000000000..04cd1c42bd7a53606a360d3eaacd22d2c2131551 --- /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 0000000000000000000000000000000000000000..1391541185f560bb8133cfd96cee682990546a4f --- /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 0000000000000000000000000000000000000000..6fc703c004983e4ec0eb04346f32107e84604399 --- /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 0000000000000000000000000000000000000000..87be0e9df8940898bcd82a3940f040f5cd45529b --- /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 0000000000000000000000000000000000000000..9cc8153f6f8085b3005ff55dec80df50ef12c4c7 --- /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 0000000000000000000000000000000000000000..cf7b8a50f51462eb138cf92cf2e731d9ffffed2c --- /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 0000000000000000000000000000000000000000..57774d01250dfc8bd85e3aa4b8e73ae3b2d5fd38 --- /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 0000000000000000000000000000000000000000..6de431cfd7ae121e2e1324555298baeff6fb7dea --- /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 0000000000000000000000000000000000000000..0c4891ced08babbd745eb8f7dc5281353812d169 --- /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 0000000000000000000000000000000000000000..a90fcef19bfbb33a2cdf10e43c30378c4ec9f3f5 --- /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 0000000000000000000000000000000000000000..0435b3b0a2790fcadf8d23a382ffc27d48c9bc0b --- /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 0000000000000000000000000000000000000000..528cda0d36f82990e6c7db801eb0fda7121a7bd3 --- /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 0000000000000000000000000000000000000000..37dc67292c41e3739b53a01adaa9776d5355336b --- /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 0000000000000000000000000000000000000000..cea99eedfc1a5e179f2441fc0b178664ee13a4ae --- /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 0000000000000000000000000000000000000000..bda152152d550208790ecccbacebdb5ed6e6bb67 --- /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 0000000000000000000000000000000000000000..8620b7402f1ca22303d8f3d82d28600e5e3237d9 --- /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 0000000000000000000000000000000000000000..eba706ad15244f9ec4f7e668a9b47d28fb021590 --- /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 0000000000000000000000000000000000000000..d1c09436f8c22f971844a43ca2faf76d733e31bc --- /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 0000000000000000000000000000000000000000..e3e0b0841978144be5a8c59b7ec89b01df9f178f --- /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 0000000000000000000000000000000000000000..84bbbde5304642ca18511d06604acb5093212b86 --- /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 0000000000000000000000000000000000000000..b1a7fb2822a2d350f9869df43860cc49455761a8 --- /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 0000000000000000000000000000000000000000..b69a6d68da0782e0da10ac2a79948c68b9134c54 --- /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 0000000000000000000000000000000000000000..52b606c1d9b6cb47c0a7877160d504974f626593 --- /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 0000000000000000000000000000000000000000..8e7fff0dcb79aabd0025c7b68c41f78e6ef6edd4 --- /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 0000000000000000000000000000000000000000..6d8a001b0a5c94623a5c275545e89b8853d0af7e --- /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 0000000000000000000000000000000000000000..286dcd85543048512598a0e9695c6b323ca4cc9d --- /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 0000000000000000000000000000000000000000..67dc5cfce9dde63f27fdc854a8b30057c0f86ad3 --- /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 0000000000000000000000000000000000000000..6adb544ad5a625b4e8971e742e4f9fadd636e7ed --- /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 0000000000000000000000000000000000000000..2c09eca626a90af50499120636f0dcb0653ad4ad --- /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 0000000000000000000000000000000000000000..2a0b5ea13135bf001617df42d31af9e165398f30 --- /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 0000000000000000000000000000000000000000..5ff7f02c39df8fe397218c71f6f8a63b52f960a9 --- /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 0000000000000000000000000000000000000000..434794598c94f1f2a51cad4d6443d593bdacfc27 --- /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 0000000000000000000000000000000000000000..d914529943370c440f1f6cc7a4c538102c7e91f5 --- /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 0000000000000000000000000000000000000000..dcba0044ec5fa40c699f030720bc52a2d16f381b --- /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 0000000000000000000000000000000000000000..830bcab7c2e291fbd8bc04b6a1f052a52db1bed2 --- /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 0000000000000000000000000000000000000000..eb41790379743d5e4b4f916c6037b45ab57879b4 --- /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 0000000000000000000000000000000000000000..bc2fed75253c4b8db0f5dac3f7ebd667d699dec6 --- /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 0000000000000000000000000000000000000000..6c43b8a2d216f10b126f3225bc83d616537cb4ac --- /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 0000000000000000000000000000000000000000..a8225f6052339ce21001bba0fcd931db15bce78b --- /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 0000000000000000000000000000000000000000..a4554bdaff054b869978051ba7ddeba981e5be0c --- /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 0000000000000000000000000000000000000000..912f2344166fb30b05b0d593463e366996f4870d --- /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 0000000000000000000000000000000000000000..18a6e90765cebcaf3d245c8b7e0ab5a034162121 --- /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 0000000000000000000000000000000000000000..8e21005b071aefe0f6d22cd10332d1377cd35637 --- /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 0000000000000000000000000000000000000000..f790eacf28998211a92bf2984c16a24151187f17 --- /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 0000000000000000000000000000000000000000..00edec1c365a8a8d2526a71376bad9b6972bd92c --- /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 0000000000000000000000000000000000000000..2648da2e3f4d493e894c4347437ee6d6af50e3eb --- /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 0000000000000000000000000000000000000000..ec52af35844491e5b7a401d8affff7ab1b13982d --- /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 0000000000000000000000000000000000000000..d28cbe978db478578d7ab6afd6071508319b2033 --- /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 0000000000000000000000000000000000000000..1f78c47c73465eca8c4c6e8f8f02d3e5603ba956 --- /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 0000000000000000000000000000000000000000..6c38aea23c26e95b700fe98fa4bab38f252e778b --- /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 0000000000000000000000000000000000000000..a41fda53b8f4fc42532d2cf7d9fdb1f5a98109ea --- /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 0000000000000000000000000000000000000000..0ee04efac9f327561a09199119becfaa2264408f --- /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 0000000000000000000000000000000000000000..95f4cdff880a085869eac1c21dcca860c6ef6929 --- /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 0000000000000000000000000000000000000000..2434d71971aad4df54d2e726df83b08a5c064c8d --- /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 0000000000000000000000000000000000000000..c92ebc0dcdcf87a48b048171a4656e2012c692b8 --- /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 0000000000000000000000000000000000000000..c35c584c6116265f810a7a9baab91a41df9af05c --- /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 0000000000000000000000000000000000000000..848a54730e75f65908ccfdff40b4747cca399a8c --- /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 0000000000000000000000000000000000000000..9350624e80b8d1b097802f0a66e2ad50e4426b11 --- /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 0000000000000000000000000000000000000000..26a9f3b601fad14ff585d8ae9d969febbf0d9509 --- /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 0000000000000000000000000000000000000000..8a1b3c75615b868285b8590e01cef21510f1af7d --- /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 0000000000000000000000000000000000000000..5f8592f18e7bf71056f93e436f04e8ac1aefdbc6 --- /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 0000000000000000000000000000000000000000..5721502064c4221a68447a5d6b825d2d175b51a5 --- /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 0000000000000000000000000000000000000000..77e52ff5c13e44624cae4aba6661d7da2eeaf2cc --- /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 0000000000000000000000000000000000000000..cd55e493e2f6d1cb240ac8e2ccdb7fb0f30bbc2f --- /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 0000000000000000000000000000000000000000..8f152144acf57065579f0143371a5e8eceb34f8d --- /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 0000000000000000000000000000000000000000..49602f98479bc09f99edb845bd76fa0a1ab3e6f7 --- /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 0000000000000000000000000000000000000000..62d02a11468d7e5a7ce4aa6fab8b9d0af25e73c1 --- /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 0000000000000000000000000000000000000000..d186913413aa856b41a53f7d97bc502bb29c8a62 --- /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 0000000000000000000000000000000000000000..f4c14d9efe7b6e3296341ae903208f6188af9b96 --- /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 0000000000000000000000000000000000000000..0d04f7cd0ea171b3d1713122311d09943871e028 --- /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 0000000000000000000000000000000000000000..9f82e8b878fb4c0a25a4602483a5cd45a24fc2a3 --- /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 0000000000000000000000000000000000000000..a97c38e51d6cca21bf8424ad10d6b449ff252c16 --- /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 0000000000000000000000000000000000000000..8407c9fc528086c9069b7c70b65e100ef8ace9cd --- /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 0000000000000000000000000000000000000000..70cf9dfd576beb284ee590589ea2b2140131452f --- /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 0000000000000000000000000000000000000000..d191f83207cfe6205be15ac93d15ebc6af1d55b3 --- /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 0000000000000000000000000000000000000000..b8cd46365edfb2bdf67d5a7ec9a675e1b3e3eebd --- /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 0000000000000000000000000000000000000000..e33538654f77f58b89615cfc6938b92569f570fe --- /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 0000000000000000000000000000000000000000..9fe7e9754468dac3521452d40e713a98de6dbee2 --- /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 0000000000000000000000000000000000000000..b5126e18392cd24aca4c1b9e8267cb1b44441c30 --- /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 0000000000000000000000000000000000000000..f1790db891050ae6e11020f74111b296a2fd44c6 --- /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 0000000000000000000000000000000000000000..619471fb7fff230e36f9474e53013965932b2daf --- /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 0000000000000000000000000000000000000000..666b8985e1dae827aee603e6656af8fc5e461688 --- /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 0000000000000000000000000000000000000000..237c717674132538b17dfbda423fae0e6899fc78 --- /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 0000000000000000000000000000000000000000..a77f461895d7fb8933c07c1947d78ff43c21ecd6 --- /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 0000000000000000000000000000000000000000..310baf4bbbd6ae0c984998434a63ade5c0ddcd30 --- /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 0000000000000000000000000000000000000000..8124c009b2c27789000f6681e10b22d6e01f9503 --- /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 0000000000000000000000000000000000000000..8c29cb3587467a95be8300fae8344bc4375d1480 --- /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 0000000000000000000000000000000000000000..20508fcdbd3ced2c1a4d47e486e2dd4fd98ab10f --- /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 0000000000000000000000000000000000000000..bd2ad21340b869017f6a5a7904b85ec3e52341b8 --- /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 0000000000000000000000000000000000000000..3f469dac47558735f921b8bc9d9994d24d27944f --- /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 0000000000000000000000000000000000000000..a8dca8db8e47b2456107e3021e0e0895fde8b399 --- /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 0000000000000000000000000000000000000000..a21f5e83dcaf08aa8f6775319b696a372be81654 --- /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 0000000000000000000000000000000000000000..f44efee088ca34964f6e91610d16006255256675 --- /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 0000000000000000000000000000000000000000..f30736fefa655a3fc7908dfa1f39aea324034349 --- /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 0000000000000000000000000000000000000000..2caed48da3ad4ce1aa6259c339d0e70ad177a9c2 --- /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 0000000000000000000000000000000000000000..6796757e14efe587348361419b6e65369758b6a0 --- /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 0000000000000000000000000000000000000000..4e4c23fb6dc34bf0a599f3134994ecd6936689f5 --- /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 0000000000000000000000000000000000000000..6d2f7680123cf1d4062e196691e297d6994d9fdd --- /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 0000000000000000000000000000000000000000..beb0c2fd4e0fd155455987827b2fa14105d1ed0c --- /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 0000000000000000000000000000000000000000..b3120acdaa800f41b44061c24b06325a120ce5b4 --- /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 0000000000000000000000000000000000000000..92b6e75f36f605642cf52006ade499fe2565083d --- /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 0000000000000000000000000000000000000000..a454ed411bfda65ff5ea4e40c58527f7335ad682 --- /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 0000000000000000000000000000000000000000..ac777f10368a24fffc6bd48bd52541c1f747213f --- /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 0000000000000000000000000000000000000000..013f3ca37be934648ffe9678de4a517f87d65f7c --- /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 0000000000000000000000000000000000000000..801e2d10808340187dae6ccb66eefa684993b74d --- /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 0000000000000000000000000000000000000000..0b01bbbb7d85327b64656e175fe93482ffc2a9ef --- /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 0000000000000000000000000000000000000000..facde4c5f2f0374447d58d159a02f99a4b40795c --- /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 0000000000000000000000000000000000000000..e1b0e33e634d289f4c21ad6b8cabbb3b70785f66 --- /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 0000000000000000000000000000000000000000..f1f828b725da6057a73938a4be9d402115efa57c --- /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 0000000000000000000000000000000000000000..2e49e06bbf39ca4534a590ff34034770dce7c24a --- /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 0000000000000000000000000000000000000000..e560ef9c8045b3195ffffa1bbbb33a4283a03790 --- /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 0000000000000000000000000000000000000000..9bd6031e43918e935f4646837312b663860ba615 --- /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 0000000000000000000000000000000000000000..9ad9c316dd123e2ad52105a2eb338ff3a72d6cc4 --- /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 0000000000000000000000000000000000000000..3b1d81bfd5fdcc5e2482c93178a632c62e67d00d --- /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 0000000000000000000000000000000000000000..43f2347614ff2a716accc8028db3a90a2e9e26bf --- /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 0000000000000000000000000000000000000000..cd48ace98e380cb7a27e0ce11d94c6af3855b945 --- /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 0000000000000000000000000000000000000000..8df88d570403256b1c007cc33c260efe13813419 --- /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 0000000000000000000000000000000000000000..6aacf924a94a9b0f54ea80d0b2bbceac6b32b41d --- /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 0000000000000000000000000000000000000000..007a5094124e226f155af094dbf0d7c953f4044f --- /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 0000000000000000000000000000000000000000..6c09c879ec26725b929c41b2e876677964cdb63c --- /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 0000000000000000000000000000000000000000..edafe7ee3acf79f89fc25cc7a10abd40b5933013 --- /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 0000000000000000000000000000000000000000..bc4af22967f0243d425f55b695995c7324d73915 --- /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 0000000000000000000000000000000000000000..166d1cdcbcbde01cd4dd7cd89e992ace489aabf4 --- /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 0000000000000000000000000000000000000000..3c4a52efc42bc24fed43c7367604dde5ca3bcf5f --- /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 0000000000000000000000000000000000000000..44012ee23a460799643a7cbba73d033fc605c272 --- /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 0000000000000000000000000000000000000000..7758e5c4bbab7dd13d8d1ea3fc7b48f1e29ebd19 --- /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 0000000000000000000000000000000000000000..8e903deda1194ae1baaf0d2185595b4cefac233b --- /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 0000000000000000000000000000000000000000..5cecbf1d2dcc53a1ce998e2e3cc0e4758172f91e --- /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 0000000000000000000000000000000000000000..bb4fe7ab69b5b365ddf8f5eaeec76b15a910dfe6 --- /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 0000000000000000000000000000000000000000..7a859ff7e4802f6a9b16a567b67ca89c18f8a11b --- /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 0000000000000000000000000000000000000000..9882129a2de1581af68e4e7db479cbcba8ddf94b --- /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 0000000000000000000000000000000000000000..63765a7a2692cb42ffa6168d92aa86b30541633e --- /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 0000000000000000000000000000000000000000..aa906e6d04849b985dc8e89da15aa0aefc15b3b6 --- /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 0000000000000000000000000000000000000000..6707b7016ebf223b073d70c330e520746d623e7e --- /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 0000000000000000000000000000000000000000..13af46ebc8ade920f704e788884826f8e20809cd --- /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 0000000000000000000000000000000000000000..6b037da5e072f93a8c21209ad8f044f754a79925 --- /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 0000000000000000000000000000000000000000..ef1a192b02590b11134416f48231cec252b70872 --- /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 0000000000000000000000000000000000000000..685d68dfb4fdbbb2433f473ca93a559fac72837a --- /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 0000000000000000000000000000000000000000..072418faa28718e955a14b0b76aa3d358b7c4465 --- /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 0000000000000000000000000000000000000000..8a5b4486a290fb2255c495dd7c6fd40a9713f238 --- /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 0000000000000000000000000000000000000000..cfca93dd851c98371ce132bb0a54fac8e65960b8 --- /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 0000000000000000000000000000000000000000..6e228b087eeaf6bb9422300c37f9a3f9836dbf35 --- /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 0000000000000000000000000000000000000000..bb24aa3199da233a203538790297e6496f0bbaa3 --- /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 0000000000000000000000000000000000000000..b3b73024d8edfeaf968f8466cdc7c7557450d486 --- /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 0000000000000000000000000000000000000000..e9e4f4ab94b6378c31d2b1c5f736bd102ad041b2 --- /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 0000000000000000000000000000000000000000..714bb17899b7f0f470381307213faf6b42274047 --- /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 0000000000000000000000000000000000000000..4004ae032f91a3e3073c50dab6b1f045c3541fd1 --- /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 0000000000000000000000000000000000000000..32b0c8989b708c336e800a75138df631d7315764 --- /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 0000000000000000000000000000000000000000..72c40fab3daa55152a64a474dbbaf9399eae2029 --- /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 0000000000000000000000000000000000000000..486a6636202a683a2af769b3648348a85aeb1a5a --- /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 0000000000000000000000000000000000000000..186635924f2df66876b47ad2418a9e0d70279454 --- /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 0000000000000000000000000000000000000000..476ef0aa068814546c50090335f4b858f444df4b --- /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 0000000000000000000000000000000000000000..4cbf43018169da1ebbe2a2048356b815194bfa3c --- /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 0000000000000000000000000000000000000000..3decdeb8782f8f2c8ae8070d076e4081c0aa4af2 --- /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 0000000000000000000000000000000000000000..6812ae400812ddca320b26ba5c23bcb7add9e20c --- /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 0000000000000000000000000000000000000000..4c05f6120ad65b58ee9d6a66a721e07e1f1604fc --- /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 0000000000000000000000000000000000000000..5696639c5153f5118892b5a76983450832da29f5 --- /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 0000000000000000000000000000000000000000..edfba42b05bfe6b8028291dc5495696535020c18 --- /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 0000000000000000000000000000000000000000..0a8b4ed80bf47136715e8e38b8fb92b201633f11 --- /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 0000000000000000000000000000000000000000..bf886186b7e5f8ba255cca7212989a983538ec8e --- /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 0000000000000000000000000000000000000000..6ad76ab0c4fa1aaa41fe1bccacdd1e83b61e0c83 --- /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 0000000000000000000000000000000000000000..310ec5bb9f0f01f7bbde1807bb067ce040b6bb4b --- /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 0000000000000000000000000000000000000000..b589d6b47bb8aa2887c8fc17917feae67f819238 --- /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 0000000000000000000000000000000000000000..7aaa833c18e77ad4a31dab1bb4100fa8c7980ee9 --- /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 0000000000000000000000000000000000000000..80203c8567bb7458d264a3368b48906af0cdfc20 --- /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 0000000000000000000000000000000000000000..63960470939ac968854a437e250dfcd3b15e573d --- /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 0000000000000000000000000000000000000000..7d48cb8e867c8584b37b678e50bb13854ce30b0d --- /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 0000000000000000000000000000000000000000..f4c6278769118cfe1c8e442ef22396f86feac44d --- /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 0000000000000000000000000000000000000000..222d3acfab58d7b76c48656320f8ca2584b6e12c --- /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 0000000000000000000000000000000000000000..0d3bb57b0debeba6697e38d8ece2c41cebc6c71c --- /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 0000000000000000000000000000000000000000..e6f0c925bf827b983a9bc347fb1ba7c9ece69e9b --- /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 0000000000000000000000000000000000000000..59c7d8ae33023ac1da2dc3b52a4739ba1858e50e --- /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 0000000000000000000000000000000000000000..26a99221b03ce4ac46048260e01185dbfd2e6fd6 --- /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 0000000000000000000000000000000000000000..db08ad914fee851e4212d89df1d78bdd8cb5d461 --- /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 0000000000000000000000000000000000000000..95f63ad7485260b80a3663ff910f6db2ec548043 --- /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 0000000000000000000000000000000000000000..4ef096fc317510f19671800cdd17b1a8979ae434 --- /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 0000000000000000000000000000000000000000..4e73fe1f5ab4979a4852380b8183ffc0455711ba --- /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 0000000000000000000000000000000000000000..5a21593b89a9de9b1eca6bfb577a207d8a045e6e --- /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 0000000000000000000000000000000000000000..9b07c4270e25aa7cf9d0f58869e3983d9c0d402e --- /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 0000000000000000000000000000000000000000..e441bb9c3670df85eaca7059aa7a9ef18e359700 --- /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 0000000000000000000000000000000000000000..60315e2db1d9ac3d4a96285d9d0da3f73b5ae98c --- /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 0000000000000000000000000000000000000000..cd39440a263c979207789333f99fad7a4426c4c7 --- /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 0000000000000000000000000000000000000000..ad569cba3d2a31bcc2668189bd722f1dd496f1ae --- /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 0000000000000000000000000000000000000000..5e92ecbb8397e4408e372cac7a1f5be7be4c2a7f --- /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 0000000000000000000000000000000000000000..2545431cdd42654dee7eec51c3c410204f3bf396 --- /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 0000000000000000000000000000000000000000..c62ca481d19bfef0746b6c07e1ca47e38c0d59c3 --- /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 0000000000000000000000000000000000000000..5b0a75b1dc83c6e5419a990614c206def6f0c28e --- /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 0000000000000000000000000000000000000000..ad4637823562bf123b763941cda6b1c0cbd1a4f2 --- /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 0000000000000000000000000000000000000000..6ea77ff88cad01948ba704a9626bac9250f480d5 --- /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 0000000000000000000000000000000000000000..bce7d61bbfe31c74138fa65be15e3a51d9337442 --- /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 0000000000000000000000000000000000000000..e52fe4839cc88c0c06a040c2a7177134501d86a9 --- /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 0000000000000000000000000000000000000000..807a3823fa8bcf1ce5b943db26fb4b020b8e095a --- /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 0000000000000000000000000000000000000000..a7c4fe9e6d2597e4feafd02e2baf4c3bc5077a75 --- /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 0000000000000000000000000000000000000000..ffbaa5d526231a958b63dc83081cde3123b45262 --- /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 0000000000000000000000000000000000000000..80368b4fa38bad4368e1eef10314cdf34841416b --- /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 0000000000000000000000000000000000000000..cdbef4a8b02f95a53dc3ea2a9a099824b6535d3f --- /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 0000000000000000000000000000000000000000..7d2ec28e5447ab70df8471649d97193c5fa43aee --- /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 0000000000000000000000000000000000000000..2d1daad5a6aa7092efa8f053fe17482d8408556f --- /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 0000000000000000000000000000000000000000..99155b2464aa800aedcc6f2ed7a5bbb4066d6c1c --- /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 0000000000000000000000000000000000000000..67c2787b53a73ead57608c0c248e0e5f14ad8711 --- /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 0000000000000000000000000000000000000000..6dde2b69a4af2c08b9961cbbcd9033e8de0408dc --- /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 0000000000000000000000000000000000000000..f02f869a0947e2850bd2f4d4714b2f732e1dcedf --- /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 0000000000000000000000000000000000000000..173c3bd0679a4ef6a21f20a72032466b491f5884 --- /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 0000000000000000000000000000000000000000..ad1defd6a037687763303980873b8445a8add6f6 --- /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 0000000000000000000000000000000000000000..ba0e6e4cc6ef5d39be47e44b0f8c279a14f3b122 --- /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 0000000000000000000000000000000000000000..4c0bca9e5edbdf9ec9bcaaf3280ce2a8da9ee43d --- /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 0000000000000000000000000000000000000000..16211aef4b312bed9ffde89891789decc425a7b7 --- /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 0000000000000000000000000000000000000000..4bb02297c9b2e29064bcb79426befb96952dbd97 --- /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 0000000000000000000000000000000000000000..f99785874bd6c96da2275acf42a5af90259300f0 --- /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 0000000000000000000000000000000000000000..13dc5f307ae810d3ed8c51e0974d01115b7d382b --- /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 0000000000000000000000000000000000000000..32cab5335d24fdf29d17c91834f3f915643c96ea --- /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 0000000000000000000000000000000000000000..2bd13f47026f7dd98a5175b8b1088cab1d293944 --- /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 0000000000000000000000000000000000000000..ff6c28e5560fdb1d43f32f5b164362d3eb1ccb6f --- /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 0000000000000000000000000000000000000000..63bfb9a3d03236a80032fa0a2af0ecf3bf759c7f --- /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 0000000000000000000000000000000000000000..2b4008bd643e4872dc12da483b8cd4cb1249108c --- /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 0000000000000000000000000000000000000000..48f1ed0417144c15d1490f9bc9d3e0abd5df514b --- /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 0000000000000000000000000000000000000000..f3413ec719683b64b72fe60ac2d2d54fe4cf6afd --- /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 0000000000000000000000000000000000000000..db23c1c66c61bb5553d0ac31284e97c16ef322f0 --- /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 0000000000000000000000000000000000000000..a70f5059bee69a3fb5b2f704448c01b99c097bd1 --- /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 0000000000000000000000000000000000000000..dfce057be67d3f36cc1486764f253e2ef0cc7435 --- /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 0000000000000000000000000000000000000000..cb579ed3438a0c2d5b9bae90b1bea6b06bc3c398 --- /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 0000000000000000000000000000000000000000..23f484d108d6aeb9be7f9285d728a370150e706d --- /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 0000000000000000000000000000000000000000..0c47ebed336614cb21f802efa9eb3560afce6bb0 --- /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 0000000000000000000000000000000000000000..fd55d05b6b362b661bbaa97c582a93ac0c0db74e --- /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 0000000000000000000000000000000000000000..6ac2f274f72602b91aa23cd6c4ff186ecd2b5887 --- /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 0000000000000000000000000000000000000000..b2ceae9d9c597b1b327e37dfb07e044e68e1c688 --- /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 0000000000000000000000000000000000000000..6474e86d3729e90d83ce384f44ee9c7b1ef10383 --- /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 0000000000000000000000000000000000000000..c569572d95dc5bd868001d6d34e54e49078cf81d --- /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 0000000000000000000000000000000000000000..ae0fdf369d521b837aa418e5ec5bd67f2d1cd909 --- /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 0000000000000000000000000000000000000000..ba6830cfdcb5d221a2aea8f935b7a91675019aa3 --- /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 0000000000000000000000000000000000000000..a974d42fa67ae93f74ea16a86263c3a66d0bfed8 --- /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 0000000000000000000000000000000000000000..bfe90cabea6aa6899fe6ce5018460daf7357a539 --- /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 0000000000000000000000000000000000000000..8ca1a2ac1331ce53c218daa9a3ee8e0479dac4fd --- /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 0000000000000000000000000000000000000000..21cd63c3411f3f3a99ac82f8f3955a3956fa294d --- /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 0000000000000000000000000000000000000000..ad58701da49df3131c4014f7a5a941b8b8a29948 --- /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 0000000000000000000000000000000000000000..da367b21254c04f9fe4ac7ea976669522f22f446 --- /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 0000000000000000000000000000000000000000..43623cbacae4a65bda49b2cbda11e4f670922460 --- /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 0000000000000000000000000000000000000000..63d3992ad3814782cc4c6cff9881e3c501bc5300 --- /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 0000000000000000000000000000000000000000..d7cc470f692a58d1ffef3c7be16750db22354292 --- /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 0000000000000000000000000000000000000000..d971ebafbd6a3ae8b91677556e0f82e0e70c0cb9 --- /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 0000000000000000000000000000000000000000..4110b355527a2d45ec9aab477e9205c50b86fd9f --- /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 0000000000000000000000000000000000000000..187639365acecfc58c2a15fe22012958d110403d --- /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 0000000000000000000000000000000000000000..c2c418b6fb2b9c02e7ec9f8a3e16b5866ef82621 --- /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 0000000000000000000000000000000000000000..78a04852839719fee0eb00da657fdecf3094ff4e --- /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 0000000000000000000000000000000000000000..7da5c21b8db3bc000660fac3b401fc1b9a483d6b --- /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 0000000000000000000000000000000000000000..2040173a0d2f71c330cc72bccf4a7af0b27b34e4 --- /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 0000000000000000000000000000000000000000..106850d7cd2c2d9cfdf4571875ad6d0859daae3a --- /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 0000000000000000000000000000000000000000..909d30b94c82a2d3c541f6ef153c0ac06d087323 --- /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 0000000000000000000000000000000000000000..350ecb1d5a6b7d19ca13516a668772cf82eaab90 --- /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 0000000000000000000000000000000000000000..c62f39d4f56bf1532d1b82da8d3852474c7c6c40 --- /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 0000000000000000000000000000000000000000..97fb825dfce09b58055035329b818c2a7e59b8ad --- /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 0000000000000000000000000000000000000000..168fc877140dfaf4bb7a104542ea864e2f0c5e30 --- /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 0000000000000000000000000000000000000000..772f654f16d1e71d44ace199623dd11f19852635 --- /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 0000000000000000000000000000000000000000..b4710a75247d3358ffcda98dc8f2be1bcd9049f3 --- /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 0000000000000000000000000000000000000000..33a70067c688c55cffd1c76a269f62ad12e3bd23 --- /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 0000000000000000000000000000000000000000..4cc22e35ada3b9333ecb699661106bcc2e994d66 --- /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 0000000000000000000000000000000000000000..25f473ef850428a157d8b30f918fc78a63130a85 --- /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 0000000000000000000000000000000000000000..784d4cb1af78964c13f7e7e22bf72fbf2f5d5efb --- /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 0000000000000000000000000000000000000000..aa93f5416f35f21f864f62e34efb31201c8dd7ce --- /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 0000000000000000000000000000000000000000..b3394925427f5668d5ab1458493f40eee2669bdb --- /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 0000000000000000000000000000000000000000..e75b0acc734ed86e5013aae7206de0843926003b --- /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 0000000000000000000000000000000000000000..8698bdd2cf4d37737a888d7d94507cd9ef9f96f7 --- /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 0000000000000000000000000000000000000000..1fd2cdbaa222c85bf2148fd6e817e98ff8f6c37c --- /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 0000000000000000000000000000000000000000..b40a308780fb1d1a373db0bfb8da7efdb4cc231d --- /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 0000000000000000000000000000000000000000..b823d6aea9598de1c1d5548d419787919f16398c --- /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 0000000000000000000000000000000000000000..769057eba820b79598c0e2422e53d3d7c2aa0845 --- /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 0000000000000000000000000000000000000000..eedcbbe2f649deaf2a9ff1fc0e2c4ef4a8d0abda --- /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 0000000000000000000000000000000000000000..b3509fa1288a958a3bb91c1ba4469640aed669f2 --- /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 0000000000000000000000000000000000000000..7661fae0819826dafc50aa541c6e9af2d84b537c --- /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 0000000000000000000000000000000000000000..0c97d3481391b45214e0e1146fac2a77e4d2222f --- /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 0000000000000000000000000000000000000000..2422127d8cd471899f5c22ad63c622ca711cae65 --- /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 0000000000000000000000000000000000000000..e0009225f7b189fb87597c6ce19ffd2275715a56 --- /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 0000000000000000000000000000000000000000..244949fbe750c8818d714313ea82eb41baab0a81 --- /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 0000000000000000000000000000000000000000..76a5db4c00b71d4c845cb5e6c21ee17d4274c07a --- /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 0000000000000000000000000000000000000000..ba47617552cfd21c80e7d3a40b4fd9c8c1628d8a --- /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 0000000000000000000000000000000000000000..774a78f37018726be5a4484fd5a0580e1ef1fe6c --- /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 0000000000000000000000000000000000000000..e36c5c5f04b8bd69b752838f213edda4ac96d70b --- /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 0000000000000000000000000000000000000000..4cd46cc981a01d5c1442c1697a577a39127f9408 --- /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 0000000000000000000000000000000000000000..9b0424c02e400cff966ffd5b4e7ece6821eb1bf6 --- /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 0000000000000000000000000000000000000000..98056e9f298cac90f775e31bb9af5254bd94d54c --- /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 0000000000000000000000000000000000000000..074db4dc98f07287a348dc33f56d258af3d2e7ac --- /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 0000000000000000000000000000000000000000..77643d6d60624ed490901bad7b8bfb69af13c998 --- /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 0000000000000000000000000000000000000000..a54407dbd582cc615aaa5a514c9e4b92ef45a209 --- /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 0000000000000000000000000000000000000000..e4ee6b8b431ea2c6c7db6cc7a68070f935348e2d --- /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 0000000000000000000000000000000000000000..64badeff2b0c674349b1ce6c3ce07c14531e3a08 --- /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 0000000000000000000000000000000000000000..6b84c6f72e7181c809d8052afac69eda302fdb92 --- /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 0000000000000000000000000000000000000000..73995f76d78165aa87d71bbdfcc6c072e3a22c50 --- /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 0000000000000000000000000000000000000000..0d2ca232b5dccd96cf19f3729a26a7f35dde9da5 --- /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 0000000000000000000000000000000000000000..693531b6c1fd6472ef889c4f6446bbbe2b440496 --- /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 0000000000000000000000000000000000000000..951847f50f72933ef34dafd604d11be581d1cff8 --- /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 0000000000000000000000000000000000000000..dfc083b8f5e7eac9e9d408a14c383e3865b52543 --- /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 0000000000000000000000000000000000000000..af644e9571e3c98f46de7508f29e0d855b03670c --- /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 0000000000000000000000000000000000000000..4ba1ebebce2f6df07f268b595202a54d4d365780 --- /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 0000000000000000000000000000000000000000..176e29842005e0ac0c212e0319711f15d6f8e4cd --- /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 0000000000000000000000000000000000000000..636d9ece99705d13a27bf4ec32ccda3bb3653dd0 --- /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 0000000000000000000000000000000000000000..458bcfd951086d19c80eb90359a5c7500912176f --- /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 0000000000000000000000000000000000000000..3a0b0c196737d00a5d832187e28281fa1cf01e0c --- /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 0000000000000000000000000000000000000000..dfb5f2f4d25c35afa4b2df1595e1f6e2faf7d4db --- /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 0000000000000000000000000000000000000000..979ba60a5c0c0cb5310cfdbba9fed4ed0c7daeb5 --- /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 0000000000000000000000000000000000000000..1976c3e6bd1cc48c1a05ab2590a20a9ddc01aa88 --- /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 0000000000000000000000000000000000000000..44904fcbb2e604cf9e8b94db644cd90a6a406158 --- /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 0000000000000000000000000000000000000000..b8ec4a632fccd996208a36cf27ebae5a4508473a --- /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 0000000000000000000000000000000000000000..d525590b0db118c643158b7416519a30ba1f1276 --- /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 0000000000000000000000000000000000000000..7542c3fc63a0aedafbae29af732391df05afc4c3 --- /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 0000000000000000000000000000000000000000..a76cb933e958e557bbf1588a2b87ea9b435a413a --- /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 0000000000000000000000000000000000000000..5b0e50c3bd0b4313f9e9799d64203630057d0a79 --- /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 0000000000000000000000000000000000000000..7e4acb03cd09f647000d77788deb1ae98835c6c3 --- /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 0000000000000000000000000000000000000000..7826b71782356b22d2983cb26e05fbf97ad776b8 --- /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 0000000000000000000000000000000000000000..065db829fba928d9bd69b64166b68bdc22903007 --- /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 0000000000000000000000000000000000000000..0b65bc2a34e29c81cb03ccab65d0fca0d5739d44 --- /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 0000000000000000000000000000000000000000..d1260115e98bfb978622d957f706dc4e36f85907 --- /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 0000000000000000000000000000000000000000..94713ce7b4c40f1fd5333ca93d90a90b0fea6213 --- /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 0000000000000000000000000000000000000000..be52288b83607d6275ece69d090fdeaeabfd64eb --- /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 0000000000000000000000000000000000000000..73e0e41386915dba3cc7be1b5a3c8e7424c0b2ec --- /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 0000000000000000000000000000000000000000..02ed1432f440f96a2dca2206616941d57208954f --- /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 0000000000000000000000000000000000000000..de2b853c6a7e53226795efa6654d3090c5d779f6 --- /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 0000000000000000000000000000000000000000..a03a58fdb7291c94295713f138e62d40f59c8980 --- /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 0000000000000000000000000000000000000000..1767a544a4ec5e079b1aa164d918a0c3c6fc2b20 --- /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 0000000000000000000000000000000000000000..8ccd61949a141a883ff8affa621d5a73b2857040 --- /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 0000000000000000000000000000000000000000..3a2280ccc79c316c9f33215ecaa6426eaed2921b --- /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 0000000000000000000000000000000000000000..4c5b9c0fe6a3e9b182fd2557f2a3f04d7ffd6d86 --- /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 0000000000000000000000000000000000000000..b1e2f8981147412d6aa9d77437caf663bfe2e427 --- /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 0000000000000000000000000000000000000000..d0a90408ccfa2e251a7a1fe0da742aeee4e2bfe7 --- /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 0000000000000000000000000000000000000000..b904851da047ae200a13d58f2a61e7a569451945 --- /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 0000000000000000000000000000000000000000..7751f6d9dd9de21325e6436d8324448b778865b2 --- /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 0000000000000000000000000000000000000000..5314602ed9956dfc9b2ea73027ec55771d807743 --- /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 0000000000000000000000000000000000000000..21f094d8df09778ac8cc2ff002d6fbc15cac668c --- /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 0000000000000000000000000000000000000000..403ab68a5e1b666341b993b97ce39ffa9f11a7e5 --- /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 0000000000000000000000000000000000000000..9fc595bf832f0c350fe144665fb526228179dc04 --- /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 0000000000000000000000000000000000000000..9301ab950fdf890624f1bb7d3f295334bebfca28 --- /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 0000000000000000000000000000000000000000..a54a46c806752a9fec1a864a18b8a9b9332e0ef8 --- /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 0000000000000000000000000000000000000000..d6833c28e08eb9d92d48753a3976c7685377ac66 --- /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 0000000000000000000000000000000000000000..73746ad49dbba0484dbbcb0736ecbfa727eba6a5 --- /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 0000000000000000000000000000000000000000..3720ce146387515aba210674013ec76adf18d61a --- /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 0000000000000000000000000000000000000000..4d4d17c456a83bd81e875c8154b5a948e9b0f240 --- /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 0000000000000000000000000000000000000000..1890ecd219e4af5abf54e989780da30abaa8c3ed --- /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 0000000000000000000000000000000000000000..9ea36904044bc3a862ab7c20decfd261039a734c --- /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 0000000000000000000000000000000000000000..766f7171d2ee03be22c224b1430d66bc79eed267 --- /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 0000000000000000000000000000000000000000..890005253a12aefaa06c4496f45fd79a1fb394c3 --- /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 0000000000000000000000000000000000000000..b87514d1ad20bf5577b9724a64997ca2d36e47cb --- /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 0000000000000000000000000000000000000000..d9913e315a0ed9654544444b1114c2c2187b894e --- /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 0000000000000000000000000000000000000000..6f5c98bbfa1afc2a95888d09a695378cd9da04d7 --- /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 0000000000000000000000000000000000000000..f8bd52bcd02f609ec2f5d099e5493c282ba4f396 --- /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 0000000000000000000000000000000000000000..611b0a9f60de082b5e1e26653d3e86687ecef424 --- /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 0000000000000000000000000000000000000000..0ed98f7408268639fe404d71ca477911aaa505cd --- /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 0000000000000000000000000000000000000000..e17caa1d148b25476b6b2e2b75d405cc7c1597b8 --- /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 0000000000000000000000000000000000000000..9d7deefbe35ac09bf3616c968f0f5e3acc3ecdb0 --- /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 0000000000000000000000000000000000000000..5e5e8af3b52e1af34f4541e347bb3a1e83248c9f --- /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 0000000000000000000000000000000000000000..14e07387be548b8cd8f70aa494d50f1f4db59b39 --- /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 0000000000000000000000000000000000000000..f7f9acf26a623b9a2ad839ecb3ca0fc6a235fe0a --- /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 0000000000000000000000000000000000000000..154d688eed8e050f7e43c662f6dfcf982d4eec0a --- /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 0000000000000000000000000000000000000000..43af713aec521ddf466fe03ae6c89bcb24865f83 --- /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 0000000000000000000000000000000000000000..3c26ebd13ac9191d853b7a82996c0dcedf4446a0 --- /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 0000000000000000000000000000000000000000..f76b3570b07b51a0c87341bb172c02b23747a4c5 --- /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 0000000000000000000000000000000000000000..d3993af6fb0ff06abc3ce432ff0ca606283e49a2 --- /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 0000000000000000000000000000000000000000..e9ff7703f08090b364085597b70a242395c4c53a --- /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 0000000000000000000000000000000000000000..15322815e0193cdd2aa8136ca942c65526f857ec --- /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 0000000000000000000000000000000000000000..31c54deb4f92001c0d9e08ea94feacca9d81e019 --- /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 0000000000000000000000000000000000000000..7e28b91793ba40c10da227eaca79fc76784d3b3d --- /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 0000000000000000000000000000000000000000..59ae4a1817a54ac333914c2d1cc4de07cc7ba927 --- /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 0000000000000000000000000000000000000000..8904e2539033d3abbcf4e5308c8667fd12e3c414 --- /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 0000000000000000000000000000000000000000..b75307f0743871ea8d563700c8c10875c76b6b84 --- /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 0000000000000000000000000000000000000000..17d23bdada9c92f0ec847e6d91ad56ece875920f --- /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 0000000000000000000000000000000000000000..c01bcefb4d97ab09c2a9432c5acf79799c48b20c --- /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 0000000000000000000000000000000000000000..5c7858687566f08d10ca5bd2f66d3e6b2d76a761 --- /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 0000000000000000000000000000000000000000..b684734a3e58960289cfa648bc0fd4f7de5a970a --- /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 0000000000000000000000000000000000000000..be52c7d7d349b51a32a4b5fe6b03512e4cbb636e --- /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 0000000000000000000000000000000000000000..54a44f1b780ba7e1ad8b5000d5b0d2d31f0a6015 --- /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 0000000000000000000000000000000000000000..b08b24e4e74fba835a8e80db487b09b233e2d189 --- /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 0000000000000000000000000000000000000000..b8c4235c153a87a1185e6d2f28e99b9c8cf429be --- /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 0000000000000000000000000000000000000000..7443f217dff64e252838e060a969cc7176e24fc1 --- /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 0000000000000000000000000000000000000000..bbb8da4fdbd425e3d7d8cc401f4606c43f98a299 --- /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 0000000000000000000000000000000000000000..640267568cb68baac651f75618fd6a0726170436 --- /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 0000000000000000000000000000000000000000..46e5893d978907dd20c8cd62687c4f4bbf7fbbd2 --- /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 0000000000000000000000000000000000000000..677bfff10940cd315ade928b27a036186866d54f --- /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 0000000000000000000000000000000000000000..1d66989c56dfb725e9f9f0b6cb5729fde503d057 --- /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 0000000000000000000000000000000000000000..b90b2c4dfcc33ffbf590d7f526a8e2a4f5e5a90d --- /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 0000000000000000000000000000000000000000..297e3da50c8857ff24b279e1d3a0b062c6ee8823 --- /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 0000000000000000000000000000000000000000..094cb16f9fcf1cef07e8e607e502e64cde787907 --- /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 0000000000000000000000000000000000000000..67ee9f827b8216560dbeb10515a221c1fef3cb80 --- /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 0000000000000000000000000000000000000000..4976879e6a1c1f085be1bb97857bf239de6345b0 --- /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 0000000000000000000000000000000000000000..53002d9b872ba29144b29e8964dc92784e098c79 --- /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 0000000000000000000000000000000000000000..567d6bca06bcb82abffdf13045047c03a3e78381 --- /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 0000000000000000000000000000000000000000..26555bbb1ae827de23fe1f8e544861707f581e7d --- /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 0000000000000000000000000000000000000000..9eafeba97daef2c40b85a5070897e928ee835ef1 --- /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 0000000000000000000000000000000000000000..81e2e0bc1aa62bacfeee3c05728040c3e44f38e6 --- /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 0000000000000000000000000000000000000000..e564785c8d9732e999bc43abad972837909a5c65 --- /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 0000000000000000000000000000000000000000..e567009a0958955b979ac1f357113dce1d7ce277 --- /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 0000000000000000000000000000000000000000..63a92d517f8718a6c859196526f7e1cc7c2e6ada --- /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 0000000000000000000000000000000000000000..3d9d8b5aca462c2ebfbcc46c1cf30e7dcec32009 --- /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 0000000000000000000000000000000000000000..5a70c100a71c6d27b89dde3e10bc914e0b7fb067 --- /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 0000000000000000000000000000000000000000..8860cd506f83c0bb2e6fbde76378a59b94c289d5 --- /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 0000000000000000000000000000000000000000..379c3fbf98d1d9d1707ce5237b124129ef22ab56 --- /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 0000000000000000000000000000000000000000..1d0243bc8670b1649057958bef9a3b0b5fb7d93b --- /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 0000000000000000000000000000000000000000..7a3fd6a09dc8a39fdb7d690a5fb0394daaff63f4 --- /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 0000000000000000000000000000000000000000..5599827b04b7f841eebb9a0e543d35bb69424cc7 --- /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 0000000000000000000000000000000000000000..6b0c5b334e9c79378e51ec52dde424352d093ebe --- /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 0000000000000000000000000000000000000000..86edfde6b3eff2f84684a25c9f0323a1ad4ba8f7 --- /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 0000000000000000000000000000000000000000..b6397681cef5b70a81375226904a2c8656e81889 --- /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 0000000000000000000000000000000000000000..119bf3a1bd435be294a3ebda3e1e72e270ad6122 --- /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 0000000000000000000000000000000000000000..58bed71d087f7330936066a9c2c7d4bf55e12acd --- /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 0000000000000000000000000000000000000000..1df9444b275f005e9f2010e7f569e97ad8639a24 --- /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 0000000000000000000000000000000000000000..a26c1d1900c36ebed57de87e91fca2ac08964fae --- /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 0000000000000000000000000000000000000000..a04c3c166cc6143de8493cf8865593e7d20e0e8e --- /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 0000000000000000000000000000000000000000..8648a1c8a56c81de49bf5852fee8d0966746ad99 --- /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 0000000000000000000000000000000000000000..5c80e60975c6c787ddb20bb74acedbfc3c925e11 --- /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 0000000000000000000000000000000000000000..2e6beb09b5ac363d2b6889822334091b182f3d54 --- /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 0000000000000000000000000000000000000000..4acd3e7c55e3fb034eb84cef1be9a191c05e88c2 --- /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 0000000000000000000000000000000000000000..5b144c36408f9268996d44be65f64f864f0cf84e --- /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 0000000000000000000000000000000000000000..9903602c23e9b5a397975d7549806c64fa9fbde3 --- /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 0000000000000000000000000000000000000000..9f160734a180eacaaf4aff5fb2497dbe4a9b5edf --- /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 0000000000000000000000000000000000000000..63abf51042839855f3a96432059871cc5af54fbe --- /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 0000000000000000000000000000000000000000..1aec7473a6d92d3a9aaccf14a4eac1011bb4e72a --- /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 0000000000000000000000000000000000000000..ee16bec5022a4d69e7ba511dd9ee1648b92345a5 --- /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 0000000000000000000000000000000000000000..9f8574fc60e513399e02376a3609b2ae1247c3e7 --- /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 0000000000000000000000000000000000000000..73abbe035732e66696d96790781dd1400e6598b0 --- /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 0000000000000000000000000000000000000000..1e346b955e8a6a14e5314486fcce8d5fdd12e246 --- /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 0000000000000000000000000000000000000000..8dcfb99dfbd26b0d2e6df4af6d9a01fc10835bc8 --- /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 0000000000000000000000000000000000000000..57962463626729c7dbf91c8686052b9ed8e4418c --- /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 0000000000000000000000000000000000000000..c960abd036d8097af3a208418f2d45f8df45a02a --- /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 0000000000000000000000000000000000000000..db7bd519878348e737d17d582f36e0437d548354 --- /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 0000000000000000000000000000000000000000..0c7625d12bc533653ff7a29c6db4bb8386f34741 --- /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 0000000000000000000000000000000000000000..46d15e1682160d859c47af50dc6752a50a417442 --- /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 0000000000000000000000000000000000000000..b1bb5e9ecb599c4d9c889fc0616b2a6c97c1ba10 --- /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 0000000000000000000000000000000000000000..0234b8ffa810571f92009fd0215773caaf5a18ab --- /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 0000000000000000000000000000000000000000..48e14b9b6c4cf53eea3de474b030965663dfe4f2 --- /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 0000000000000000000000000000000000000000..f213dac37de451408607066b6f21f652be4da60b --- /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 0000000000000000000000000000000000000000..83478dbc5a61028a85952c7d8e83dd6d53ec42bd --- /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 0000000000000000000000000000000000000000..61ef61d49004f288b800588a1786867d13d8299e --- /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 0000000000000000000000000000000000000000..d2bdf2678a1152a9d6b461ab93c30f7fe183ef96 --- /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 0000000000000000000000000000000000000000..2d0242d9dd8fbe6d8eeebf88743773a2d0aa3b68 --- /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 0000000000000000000000000000000000000000..34897055d52bf19d6730809fdd757f10b872c3e0 --- /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 0000000000000000000000000000000000000000..1fb4fee4a7364a987d2e4a16abfaedf2eef4a074 --- /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 0000000000000000000000000000000000000000..f0b492a200b550e0b424b09b3ea04d02b63ca659 --- /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 0000000000000000000000000000000000000000..e780ce4e33d52a1364de610a051173014a51db85 --- /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 0000000000000000000000000000000000000000..74cf19ae32d4f79293c1351151e749e605130267 --- /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 0000000000000000000000000000000000000000..b31c5dad86421e0be6338af2d9efbbf6e1e46aff --- /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 0000000000000000000000000000000000000000..857ff2fdf3e1589f5a123eabcee71a280d50035a --- /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 0000000000000000000000000000000000000000..67bd219d181b886187f928d0c9b21b17331773a9 --- /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 0000000000000000000000000000000000000000..edce9e148bbbc3a4bc3c9df5b9fede38cb15b90c --- /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 0000000000000000000000000000000000000000..8a4efc45181ed2cffe09d436222312f3a9c59fb9 --- /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 0000000000000000000000000000000000000000..58f79ccbd3deccde889e6b3469376458549df731 --- /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 0000000000000000000000000000000000000000..b53f2636f3d15e2be7ac911d442ee1114d626d19 --- /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 0000000000000000000000000000000000000000..8f8c51131e1e9f663d4283bbf2156b26ccc594e7 --- /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 0000000000000000000000000000000000000000..87866956b88f2ad2c1f0bf13d869e8f2ac2b571c --- /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 0000000000000000000000000000000000000000..b99f5242bae97e411a9977999fdd0cc8dd10456b --- /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 0000000000000000000000000000000000000000..b895af7da991b2168564cc2ce27e218f3e4863b8 --- /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 0000000000000000000000000000000000000000..30ae3daa26175207a5c9d26786728a602f39447d --- /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 0000000000000000000000000000000000000000..bc6ff4310ca07f5b1da6e0e68b607c107c616126 --- /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 0000000000000000000000000000000000000000..36c318ad8779284376b64c6a6c40b1a70099b981 --- /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 0000000000000000000000000000000000000000..6bd75666196167c651390480c92e3f5a19b59b67 --- /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 0000000000000000000000000000000000000000..03122af3843efd23ecebae20583102c2e7337ef8 --- /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 0000000000000000000000000000000000000000..d456808127ca2965c295a29feeb32687bcd7797d --- /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 0000000000000000000000000000000000000000..bf4df68501f4d98b85699d6098bd8a02a275c762 --- /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 0000000000000000000000000000000000000000..3f3aa1d1a10a560573e7700b2ce2d173eb53bb25 --- /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 0000000000000000000000000000000000000000..bbadd8cbc84ef8db04625a158c6736ea27e821b1 --- /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 0000000000000000000000000000000000000000..4918203b79b5d9a076aa424a650890c185fdeba2 --- /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 0000000000000000000000000000000000000000..cd557dc40c02f50bfd65ff4fcc39a3366a3b6e58 --- /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 0000000000000000000000000000000000000000..5bed396a815eaaa35e3b4f04a8bf678a67a4b690 --- /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 0000000000000000000000000000000000000000..c9d0a7201fb6799c71e7acbeae9dbf628422f1a0 --- /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 0000000000000000000000000000000000000000..4c2a6b53b6efa3e1bd347463902b6fe8ade4ec14 --- /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 0000000000000000000000000000000000000000..0804bc6b5585ae83c9af71370c07376d45fefde3 --- /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 0000000000000000000000000000000000000000..b9af2261836cad3b6966f6465b58c46f86405e39 --- /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 0000000000000000000000000000000000000000..558e9612c61d71d2e3293626ce59b955450943ce --- /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 0000000000000000000000000000000000000000..9243e92e33d5998a60a90b732448f805a5124fc9 --- /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 0000000000000000000000000000000000000000..039bc8f268d39ca4e7247c6e4d03be1797a47e7f --- /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 0000000000000000000000000000000000000000..3eb511c52a08da1badd63981eab6cd4208877ae1 --- /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 0000000000000000000000000000000000000000..01baef9026a727bfd6677a68376727881163f948 --- /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 0000000000000000000000000000000000000000..2b58b746c362ed2fd24cc2f1e348f71f9a48564f --- /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 0000000000000000000000000000000000000000..a2757b81e6eafe52168c566a90855c5d480a2dba --- /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 0000000000000000000000000000000000000000..fb80ab47dae695ed0f50f5fe8b121fd3d480b925 --- /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 0000000000000000000000000000000000000000..6ec1544145dd8b9b4300ffe61fb0fc3522b8a7ae --- /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 0000000000000000000000000000000000000000..99bf824879407f113537b3547a2aa6a58444955b --- /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 0000000000000000000000000000000000000000..6083fb314deb5d8c58ab9c7548c88ed45be3c8af --- /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 0000000000000000000000000000000000000000..5f2535a38671ea807e1a1fb4beb94d47bbc3d3b2 --- /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 0000000000000000000000000000000000000000..f7045954bf02de7b1eadf89e14ff9bad9d8d34fb --- /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 0000000000000000000000000000000000000000..8d1204f7ac19604f6374ebee4dd6d474a1b09b5f --- /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 0000000000000000000000000000000000000000..fe7a95809aeed82135b686a221b34ee9d8d6449a --- /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 0000000000000000000000000000000000000000..84bec754133843db772d31ec9bb55ce86c63bd7f --- /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 0000000000000000000000000000000000000000..ec7282042a72a1a64cbe1f0b18de15bf5b87b708 --- /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 0000000000000000000000000000000000000000..5a5d6844130e3c96dfab721ac078cb5915c03130 --- /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 0000000000000000000000000000000000000000..3fca904feecab7f2c836e566ec8ffc97601b692d --- /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 0000000000000000000000000000000000000000..9604e9f7196d1e23ba679f43d6d3b115848838f6 --- /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 0000000000000000000000000000000000000000..83058e2c2c8f6fa41a3486a7bdc5bc4f21947c90 --- /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 0000000000000000000000000000000000000000..852b3129184ffb79883579bb6dd0a9544f14c762 --- /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 0000000000000000000000000000000000000000..a1694dacbec9b139daa005390e9dce48fe95f81a --- /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 87e64579d77104e40d7f849bbbebd5889a3f0156..6d45227121aecd9707ef8353a960738ff1905071 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 0000000000000000000000000000000000000000..12ccf13aee4b5ae59c3f50cd6c9544cc64606dc2 --- /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 0000000000000000000000000000000000000000..4730130ea065c6eb53ef3c30e965c8b5f9fcd2f5 --- /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 0000000000000000000000000000000000000000..28339bb299a55c00a84f6727cbc761ab10f74c4d --- /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 0000000000000000000000000000000000000000..648fda739d4f63bb3b8fa0facfe39a7dc8f714fe --- /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 0000000000000000000000000000000000000000..c3d41014c42196495ed8d8432bf194c17a88d9d6 --- /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 0000000000000000000000000000000000000000..11eb3ff1744bed0f6e95bfa4e086b8c1ce2d2ea0 --- /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 0000000000000000000000000000000000000000..d8e53c8704bdff9cd598969678247c2f5d158da0 --- /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 0000000000000000000000000000000000000000..be7539e32070bb426f9c4ff7ce4224f73a68dea3 --- /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 0000000000000000000000000000000000000000..f97f7931456dbd748e17994ecdaf7dae3f4b9b61 --- /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 0000000000000000000000000000000000000000..e95f02e6c3b993a4d3a484f87e05da813e43715a --- /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 0000000000000000000000000000000000000000..db90c771e4a39729123cb37575e1ccd85b2c2a44 --- /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 0000000000000000000000000000000000000000..5dd2d46d08adc19b36e5996b48a1f6188f4acc38 --- /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 0000000000000000000000000000000000000000..e84c843beffb47708d2a7286698e6cb5216c61f8 --- /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 0000000000000000000000000000000000000000..0ab64d87c953e4c604dba8d8a9a59d17c80242e6 --- /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 0000000000000000000000000000000000000000..7daee9892b6919a1a5a49f05d11d923430f6746d --- /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 0000000000000000000000000000000000000000..370409440fef11b1d5050ec53e668aac6aab5c15 --- /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 0000000000000000000000000000000000000000..f74228f4af4cfa775510bb18430f56a3b20ab843 --- /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 0000000000000000000000000000000000000000..d2d0d1b040a38f292515b8036d0902e4c94e47c6 --- /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 0000000000000000000000000000000000000000..0e149fd4dc2bc87a63e535f7068af937e1209859 --- /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 0000000000000000000000000000000000000000..31e00447f22723a5dc1d8731a6a92efe45d530a9 --- /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 a70ecfe2a26ded187df4b50b600ac741f94e02c0..60d1ceb437daae4dfeb545dc79e78adead96a728 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 36fb8c447cb63d109ad6a5a91417c88c089b709b..83486c629efeddfe8ebe1769a04b17e4f50d6b64 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 ba4f2b7fa65176182398a3fe8e0aa21a3a94be4e..a5ec40df22f08e44fa0758237afdbdd6c8fe608e 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 6a3a642b8d01bc2866d53aeb0ccdc1cfa528baf8..0146bd34e9efe37cfd2d0df0ab757bb4887f163e 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 1f6a253fd298b812d85edc13c86103d1b6294438..cb02f14c9f75eea78909950bcfa048f563cd15be 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 0000000000000000000000000000000000000000..6b4c3e6aa17d0aa5bd64118d2cac41269868fda4 --- /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 0000000000000000000000000000000000000000..4691909f347602720188a08bee20c8a41e015ab7 --- /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 0000000000000000000000000000000000000000..12fac0441b8916bd551e6353bf6dda32911e2d96 --- /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 0000000000000000000000000000000000000000..20f0b09052b7097c65669cd22226d7f19f713999 --- /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 0000000000000000000000000000000000000000..203d22af6eae15510cc5a3de16045db896eddc4f --- /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 69e76b81bf972e8f56399a33aea757d65fd27f45..ce00b4f92e8228bfd3e6fb9537937c8c67d218cc 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 4124e9af4a5ef601a3c5c74ae868189d78456a7e..e1e7969e440c3b7046ed1720d22aaf59578569c3 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 64778f2126332268335fc2a41c6dcc61eb40409c..cad8972be74ae71dbee94e637cdfe69c25e8bfae 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 9df5b09952dfbac9c55b744848ef39941ccd5d04..517e868e48c39f1e5e94e1ff01bbe6c78fc331b5 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 a34102029517059a27fa474037937d63e17d3cac..317d62a5c2caf672457ef4ecbec18c3e541e042d 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 7501d1fc83df4546710719b55e5b890f43167b02..141f83766e9009752ba9a2a83d799b4dfd603fb6 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 1b36844ff45617c725c5d3a69f580ab9df289319..1b9ed658ebdb84a1bca98d2bfaade731c7133bb8 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 885b8a5d695ec7711b640b58dface0681a96f969..7a2441283c05c0e53587e787078e627723bb63b2 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 3d329731b8b958276fede34bb4564cf6ec6d6a63..8d7d878437b544f6b0fb02c1ca6ba6ebb3ed5692 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 0000000000000000000000000000000000000000..2f60de768c28e52d89036c2caa307ead5aec7957 --- /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 19603524414923f43b178bdb0aa8a2db333234ac..aecd488265dcc306f8f40cc96999037450e396d3 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 d7f1d08ab32a595435a2e398ad7706665146fccc..69f07b3db15072fc747eb40c295ce395700d5649 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 d420c5c05b470f00c2cdf3071e7a836aefa43471..ab22684ae2a92c07ce8bfb6762b0e66d42f7e74c 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 934fe12eaa2a830aa8be1cebb1c7193610aeb848..61542ac7a6d24787c2f851d6813f5f7516cb3530 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 0000000000000000000000000000000000000000..3e3f5f6d94e02b55b9018f0e46597a23cc9c4bcc --- /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 47f8c37ce3f847c4981b93682a85cb684487f8de..a2fc09f7c482ee2870efc4fee67c5bd274845316 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 a6d718254a57a9f30375cf270ce624e4770fed50..9fb45de63f7f00a4795c662e748aca10f3ab1e6d 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 036b9cd555ec99304135c77a4d7466e64a0fd786..733c9d60491522e7f33571aa2129a70fcde8442c 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 6a2c820bba4b75110c4ee42c51cd86adbbfa62dd..e5994bcd697f89d729831133a21c822e46d86fa6 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 0000000000000000000000000000000000000000..bccb9159b25d9084b1541962bf6a01871f4c8c4f --- /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 02515b225ec134378527c2167438237acf85ee6a..33531c62ff39b4fe88d5d3d1ccd35bba805a137a 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 e0abe1aaac868d94ea7b04f5cc6a44abab41de0c..ee16e1fcf40ad63fb56cbc5019c76377cad2cb46 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 cb2c174dd045e754f0a41cd808985523546fadb8..8ea128db05d52bd9de112f7676b89c2caf966961 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 bd541d4106381bd38f12b526f6df2e6b17b61089..774eae4ed1af888fe30c91fdf2d2ffc006448865 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 0000000000000000000000000000000000000000..bdbf79ca6f822f6fe8e04919eb560128edd524ac --- /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 0000000000000000000000000000000000000000..2e6bae8a48d3b32918135a6aa050b2c167d1bbe2 --- /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 0000000000000000000000000000000000000000..d9e5deeeabe36ccfaf2855b8966e31c4ec1cd4f3 --- /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 0000000000000000000000000000000000000000..0be128d9f567df09e8932229fbff6f79f666a530 --- /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 0000000000000000000000000000000000000000..bc5f76460370c6422ba0eec0afc9b01c9bc452a3 --- /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 0000000000000000000000000000000000000000..87fa95b326d88bd13bd9666f5ea77eeac4669b02 --- /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 0000000000000000000000000000000000000000..8b21f1debe0130276301bf01a732b9137c0e527b --- /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 0000000000000000000000000000000000000000..0440afabe554302022d98ff9438e4f5522245873 --- /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 0000000000000000000000000000000000000000..2c0adc6dff88a94558d9268f13cff8c4d26a05a8 --- /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 0000000000000000000000000000000000000000..27adb069af6dbb64643d5fa305c721d5f6b58391 --- /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 0000000000000000000000000000000000000000..e56a6cd8f1db14d4c083509e293ca4260a2ec1ab --- /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 0000000000000000000000000000000000000000..e4dc57f1545935c4dbefb711d8cf6cb414caeda9 --- /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 0000000000000000000000000000000000000000..b43cf3805ad9d39253c01f50fc163f704586f8af --- /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 0000000000000000000000000000000000000000..b832433a08323313859a93d791f6854a40163faf --- /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 0000000000000000000000000000000000000000..452235646704a0e9ecf074efafb319eb186a0207 --- /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 0000000000000000000000000000000000000000..5a592c842a124bcd3aae557363c5628fe54ef534 --- /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 0000000000000000000000000000000000000000..0b0ebd826910b7ce4fbe0fb72856ff9271dbe9cc --- /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 0000000000000000000000000000000000000000..4024c7eecdb063d2f769c79beeb51f24f9fa6657 --- /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 0000000000000000000000000000000000000000..7c290df31f08a64c9eca58fe4c72e2260f7d71be --- /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 0000000000000000000000000000000000000000..b6d4d718a940f2c6186a5641c6e36f20a48b663e --- /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 0000000000000000000000000000000000000000..a9684321b598b4c9a6237e8a09de2affa0e23faa --- /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 0000000000000000000000000000000000000000..a318d8aaa1e31a4745c6ee3c082648a49428cda1 --- /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 0000000000000000000000000000000000000000..bac3c40a1fe2825f21ad3f5509ee303e68d055da --- /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 0000000000000000000000000000000000000000..dd419a61cc48510f4116c53837cf31a788c40cf1 --- /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 0000000000000000000000000000000000000000..cf66b976fb1230a3551bc9928ecf215db9fa917d --- /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 0000000000000000000000000000000000000000..d0896e53f41874cd3899108ab729cd4fd6567708 --- /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 0000000000000000000000000000000000000000..dbd17e24f57cb8f79f4da9c5181ff381fd44197d --- /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 0000000000000000000000000000000000000000..6b5131d58e23810a05b0099d47b3d9bf939b00d5 --- /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 0000000000000000000000000000000000000000..3891d6fc4b1e45cac56d68e2b2c1218da46fef71 --- /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 0000000000000000000000000000000000000000..3c5a0d0620081902298d142fce83a31a1aef9f16 --- /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 0000000000000000000000000000000000000000..61181c60814054f718781977fbb65d562feb6294 --- /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 0000000000000000000000000000000000000000..19638ed7b3115fc0f24c9dad00eae85e6985eda1 --- /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 0000000000000000000000000000000000000000..5a10ae6e5d35e1b966021e7c558227b6c4cd8f22 --- /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 0000000000000000000000000000000000000000..329bba36e37705721ddbddfdc4ce24281a7bd0d3 --- /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 0000000000000000000000000000000000000000..4e18dbdc52158d5b62e448dd9c2effe93d4d7fb7 --- /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 0000000000000000000000000000000000000000..765476172e656238192ccba2bc08360d31848188 --- /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 0000000000000000000000000000000000000000..522cfb8fa86dfd6e3934386411c5f0344d44d427 --- /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 0000000000000000000000000000000000000000..e3fd0ce82ce2017a991fb1a29870579cfc65af44 --- /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 0000000000000000000000000000000000000000..2818dddb3af071ab5fda46abe638e820b9840083 --- /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 0000000000000000000000000000000000000000..424d0a2caa757509a8e357beed1ae215596b47ef --- /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 0000000000000000000000000000000000000000..ecb275c7c65bc42d06aa9cb0066103cd93d41d0f --- /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 0000000000000000000000000000000000000000..f40ae02478e26b08ed2932d956032ef80d433152 --- /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 0000000000000000000000000000000000000000..e668870dae69ba54b2713754455db4d596c2cfb4 --- /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 0000000000000000000000000000000000000000..64fd6bbefc59ab0fba70a1293895ce4b2027682f --- /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 0000000000000000000000000000000000000000..8b872a4639b24c8fab3c06fdbdefde574831b44d --- /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 0000000000000000000000000000000000000000..eafc7f60ce5f93faa76f8ad9e560198fa8ff125d --- /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 0000000000000000000000000000000000000000..11fd6e991a263c548f3e6764aed476448ce7751b --- /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 0000000000000000000000000000000000000000..ada4c0103cc8c85550b31971f5665434f479fffa --- /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 0000000000000000000000000000000000000000..b7e4ba925b1dca15f4b1bf6050e1a8f93057ff32 --- /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 0000000000000000000000000000000000000000..a013422461e598244df89f75b9d495008e6b87e9 --- /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 0000000000000000000000000000000000000000..8468c248a5309954f8dfe72ff25ba9cf6c7665ec --- /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 0000000000000000000000000000000000000000..15cd21626b36fb9a5697063dc1dabe42f7219757 --- /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 0000000000000000000000000000000000000000..4063f2bae0793a66847864e2f6231e0302a6aaba --- /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 0000000000000000000000000000000000000000..673dc5614fb4c4d93ee64f4c241f4852423f5dfd --- /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 0000000000000000000000000000000000000000..02ff81b667f880b2044e1446f5418d54df323cca --- /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 0000000000000000000000000000000000000000..e60bc809a20598abfe984a7da0747e1d3d967594 --- /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 0000000000000000000000000000000000000000..613900ccf94cd03e40ed759199e0a61dc49a39d0 --- /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 0000000000000000000000000000000000000000..9524acec970e58310aa25d96bba466b6824cfb5d --- /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 0000000000000000000000000000000000000000..1af910ac7b54fe37ba6dcc2ad91252b7479a99af --- /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 0000000000000000000000000000000000000000..2593a347cbb23a598cc252ab9a9ac38a532ba599 --- /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 0000000000000000000000000000000000000000..81a6757271e4c47358f601a47a6a280805fb2e67 --- /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 0000000000000000000000000000000000000000..d9fe52c81c80b44c8d5137e7d192a79c435c98ef --- /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 0000000000000000000000000000000000000000..39eb2664ce6524c14ac954b0ec8e5b1dc0428c8f --- /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 0000000000000000000000000000000000000000..f35e54473afaea94f5a8b16e2f8e0cfcbad9330f --- /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 0000000000000000000000000000000000000000..0ff96569939b990a15da9a575f9cbe8a0baee1b1 --- /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 0000000000000000000000000000000000000000..e16e2a0bb4c5795845ececc36e04e7eb86fd057f --- /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 0000000000000000000000000000000000000000..7bf5be5a326e44dddb7a95e278bcba0c4a550cfb --- /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 0000000000000000000000000000000000000000..572b4f30dc5da0a8a09ef189390e1217d18a4b00 --- /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 0000000000000000000000000000000000000000..bd34db20880d66391aa3b48b6a53e5fecd4e1e37 --- /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 0000000000000000000000000000000000000000..39d21eae062c191e17ce7b7545723bd9f2a9602f --- /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 0000000000000000000000000000000000000000..65b8228074fadc8a986a3199c8b24757f3ac3641 --- /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 0000000000000000000000000000000000000000..c20f4de979c69ab976c5a8caed3562453a471315 --- /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 0000000000000000000000000000000000000000..4edb00ea9983f20a0397a580b9afed384764c31c --- /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 0000000000000000000000000000000000000000..a8a62f4d6494329ac9f684e14e151c0958eb9c78 --- /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 0000000000000000000000000000000000000000..40595fb94b98836daaeff620bacba0d962cb0ac6 --- /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 0000000000000000000000000000000000000000..ad8b512c30a9afba4918923b614666a7fae7c946 --- /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 0000000000000000000000000000000000000000..f5e59ddacb91b1e40421f93f5736241246a3a9a3 --- /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 0000000000000000000000000000000000000000..38382a354b6476ce38bde1306befd36429dbccdd --- /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 0000000000000000000000000000000000000000..b9afc5e4fb9334a13d0e3ea76ad219e90465692a --- /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 0000000000000000000000000000000000000000..b6cf9dbdeebc416126d151fa33602d520c3a7e30 --- /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 0000000000000000000000000000000000000000..74bc4582494ae255d3e44b03ac612b858b800ab7 --- /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 0000000000000000000000000000000000000000..8f2a8c215a6f4c8b2bb8a0e5339ebff6d65c17ba --- /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 0000000000000000000000000000000000000000..6fdfed446b3247f5c6b61a9b075f8c27c15fb844 --- /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 0000000000000000000000000000000000000000..bfafc0e65c069f1ee016bd12e2c15902206eff68 --- /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 0000000000000000000000000000000000000000..3cb4f127a46e272b2b35d4cdaa26902b2913dc7b --- /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 0000000000000000000000000000000000000000..335f8b3f1591b518da13df1c466a9bf6fd0c7a02 --- /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 0000000000000000000000000000000000000000..5980207383960af7dbc758d767b05855a8116b04 --- /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 0000000000000000000000000000000000000000..bd13a480d7484a1b08bd02bae36d44d80d9e2605 --- /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 0000000000000000000000000000000000000000..bdd830f3eab9fee82914ab25aed645a8779181fe --- /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 0000000000000000000000000000000000000000..7aa0ae2feff3d8b72465096d40453dd2a8722ece --- /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 0000000000000000000000000000000000000000..77da06c673fa46e85252e0d9b16747baaeb115c1 --- /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 0000000000000000000000000000000000000000..fb0a84ce28c1bd93ab7d0de647990751923d8047 --- /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 0000000000000000000000000000000000000000..5dd6c1f4843fbc66ed91dcc1cc8ab86c9d6706ec --- /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 0000000000000000000000000000000000000000..7e6d5165db49c6814ecad2b3f0c16d4285277eb3 --- /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 0000000000000000000000000000000000000000..ef467ac437aaf458ffe1b979cb00a5bf9bba66c8 --- /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 0000000000000000000000000000000000000000..aa9e890c6116233f7e806a172b91326e41b6522a --- /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 0000000000000000000000000000000000000000..57e9ad6a0c8d2d314580c2c6465144ed0141e69b --- /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 0000000000000000000000000000000000000000..03f2b4418a014860a6eecc0fb290c5d96eb0bc10 --- /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 0000000000000000000000000000000000000000..e410009b3084d22cce89c1ebac04693ffb113806 --- /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 0000000000000000000000000000000000000000..9bd2324cb880fcd339d7ea99b3ff2554017b0bb7 --- /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 0000000000000000000000000000000000000000..3cc20bd60c5b1f18efc8b032c50a4dc45edea3f2 --- /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 0000000000000000000000000000000000000000..0bbfb6816b113c0327872be940b47788526ee1a0 --- /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 0000000000000000000000000000000000000000..13a66c0dd0c916dcc80ac3f62144c97324ee459b --- /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 0000000000000000000000000000000000000000..241dc955c3c29229d71c389df6b0dbbe0aadd50b --- /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 0000000000000000000000000000000000000000..38b2652a2ce83eae120fbf0332addc46358b8366 --- /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 0000000000000000000000000000000000000000..50757cee21d7507bc3023c3662df59d728bfd9fe --- /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 0000000000000000000000000000000000000000..829687e6ad6b6f1d4ba21dcaed5bf3946a2c64c8 --- /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 0000000000000000000000000000000000000000..908c578b61dc9aad4573ebd875ae78c49453e8b5 --- /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 0000000000000000000000000000000000000000..4ffd6adefc68edce9ec5a177125046da1d7c8206 --- /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 0000000000000000000000000000000000000000..ac6cc76a1d30089c3ab5920c27253998da07a4d0 --- /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 0000000000000000000000000000000000000000..b06062006780f4225c89fd7e207067d6bb255b4b --- /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 0000000000000000000000000000000000000000..2576502bc960725f7d2f34e6bd0f106d1f1bb76e --- /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 0000000000000000000000000000000000000000..ad6bde24d192a8713cd11cf0b7a5b32b2a1db8c9 --- /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 0000000000000000000000000000000000000000..fa734647a541d348afb6ab024dbb29298407a32e --- /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 0000000000000000000000000000000000000000..e8649deec0dd9e413d1297cc8beb5efc44f60a8e --- /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 0000000000000000000000000000000000000000..3ba93e21ae73642169b339c8998b99bc6d8f76e7 --- /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 0000000000000000000000000000000000000000..d28a26ded6a9574f227bcdbc92e020c962c618e2 --- /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 0000000000000000000000000000000000000000..616f57f7ae80823f89a1fbb771cbfb8f218eef32 --- /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 0000000000000000000000000000000000000000..aa5f199fa0e91fff1ad46a685a53ac8f8fcd5af5 --- /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 0000000000000000000000000000000000000000..1c03034be0919c7c3f5591ff85c844551a561510 --- /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 0000000000000000000000000000000000000000..8d5ec555b87cfb2798df5eb5ccc7e874bc1140f9 --- /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 0000000000000000000000000000000000000000..50a65af33307c83659ba5d40c6e04f6922554c83 --- /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 0000000000000000000000000000000000000000..7bcb52f5f6cbb986d1cf9b13b8bf4dd7665456fd --- /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 0000000000000000000000000000000000000000..b64c8b5fb215733b51353c25e6191741e741cac5 --- /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 0000000000000000000000000000000000000000..85d68aaab4fd75067ea7458e38077410bc906657 --- /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 0000000000000000000000000000000000000000..037afb484cc49b6d0c17b6073822c0a17a16343f --- /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 0000000000000000000000000000000000000000..f2f379f9880ae058b9970bad14f23bf901350122 --- /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 0000000000000000000000000000000000000000..ec2118d0d59c9bf7570b1df169bdca27ff2f4b0d --- /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 0000000000000000000000000000000000000000..3b9db2a64a251f587c1c8144660276344f3cbc4b --- /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 0000000000000000000000000000000000000000..a2695474a30ff682c68c62d11fce9c7b05c9b5a4 --- /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 0000000000000000000000000000000000000000..53f83f9cfdab1932050f9719b4096d20b556e382 --- /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 0000000000000000000000000000000000000000..1ccccad5b5ef8a348166bdfd47aec46a5076d1cb --- /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 0000000000000000000000000000000000000000..8680f3feeb0eb9687f2280498edfce0015692e68 --- /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 0000000000000000000000000000000000000000..9363add8b5025692a8f6e66bf664ef728a7467b2 --- /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 0000000000000000000000000000000000000000..9a04aa3100f2b90b7f1fa971e90430f42da3c677 --- /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 0000000000000000000000000000000000000000..c2f739bd71d754460015f69015d243a0baa29832 --- /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 0000000000000000000000000000000000000000..759924aa68eea4cda801495500dfc09119e5b5f0 --- /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 0000000000000000000000000000000000000000..4364e316bbff11ee43ad3b95075c418b5345d94f --- /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 0000000000000000000000000000000000000000..3c896bd078fff03f36b17f106f8ed2503dfc4b70 --- /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 0000000000000000000000000000000000000000..1c47db30ef6e681054d2223eaa23b5ae90ecf7f9 --- /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 0000000000000000000000000000000000000000..81e70ea7e72a2355003e922b813d92ba51949371 --- /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 0000000000000000000000000000000000000000..2122379ab47400e986b5fad4dd6e65e897ce9bdb --- /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 0000000000000000000000000000000000000000..566f5b5d437ce457d8db746f4a6c13f870fd2cd3 --- /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 0000000000000000000000000000000000000000..911b2e57c31f8ffb7d81e104c40566a8b4f7ae1c --- /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 0000000000000000000000000000000000000000..ec1672bd8f75d0d96e2f276748f9d674402466c1 --- /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 0000000000000000000000000000000000000000..8f98aba92040c9356839ee04753fe97bc9682788 --- /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 0000000000000000000000000000000000000000..ef0aca985d7da3ea4894fe901db5379d322148d8 --- /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 0000000000000000000000000000000000000000..52671a0654606dc57b9511de61eaf47471983281 --- /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 0000000000000000000000000000000000000000..cbeb412dc25cd59ee0381f6b1cceb0afe0afb40a --- /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 0000000000000000000000000000000000000000..881b12d366af55ea072526f0beccfd933c8f232f --- /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 0000000000000000000000000000000000000000..bd62ed446e00659662f8cac17ab9a34776d790bf --- /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 0000000000000000000000000000000000000000..3edfa37c587d3fbe2196c0774ed0df1f7e432e0d --- /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 0000000000000000000000000000000000000000..91c2f36d595621d4ad57f539a46b99d706c267c4 --- /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 0000000000000000000000000000000000000000..30b8663988620471c409bc3d24f6becb90b3afcc --- /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 0000000000000000000000000000000000000000..1d254fe19565f3918a536189e9a873b6afda0add --- /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 0000000000000000000000000000000000000000..390b57d00be64c202a83b0aad81261479b280317 --- /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 0000000000000000000000000000000000000000..24ff5f4cc6e35401b51a09facbefb1e8ab2993e7 --- /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 0000000000000000000000000000000000000000..f0545f14a126058bb416ba2919aa57c21ddde0ea --- /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 0000000000000000000000000000000000000000..48fb3302c267a039fe36faf3e976a802818c28bf --- /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 0000000000000000000000000000000000000000..285b4aada10bbeed7582374922064d313efc863e --- /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 0000000000000000000000000000000000000000..3cd2c28b9ed4a09992170507bd05c3fbb227e5ac --- /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 0000000000000000000000000000000000000000..91c147e89b47bdacb48edec3a6100d186be07e5d --- /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 0000000000000000000000000000000000000000..14ef0d90dcb6386039ac32e7660b6e04114001b5 --- /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 0000000000000000000000000000000000000000..67b6a3f9a1d1047a2f311479cf79b09276f06ed5 --- /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 0000000000000000000000000000000000000000..a1f5f1d1a5ea145eefb1ccb3c845e685a10751bb --- /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 0000000000000000000000000000000000000000..9997b4b1fe13d2ad7ba4e7a9f2089ac02b811811 --- /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 0000000000000000000000000000000000000000..68e3982149aec91805b6b4503f521313ba4d067b --- /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 0000000000000000000000000000000000000000..5428d4960e51509975c2d934c552d1c854550367 --- /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 0000000000000000000000000000000000000000..9061df20281aa77ed0a8844fe98e0fba76f4aa77 --- /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 0000000000000000000000000000000000000000..15d5a1c127be64d178b76585a46934fe774b0e66 --- /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 0000000000000000000000000000000000000000..3ae4eeb5d3d106248ad76674f7ced7f927a09193 --- /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 0000000000000000000000000000000000000000..e7b6c01b6b9b9aee3444c429618725522ce379f5 --- /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 0000000000000000000000000000000000000000..cd588dde92611f1a72916b069ba7c302034a8cb8 --- /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 0000000000000000000000000000000000000000..3d5137d621ea49cd939c51f4e769918d26e4a01c --- /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 0000000000000000000000000000000000000000..c3877541b056130a126d4de8f8936c736ba66281 --- /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 0000000000000000000000000000000000000000..fd8e64ea2926f0d5b3469dba28dec220dd78632d --- /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 0000000000000000000000000000000000000000..732493b319a760796775f4bc707053cdbd546fc5 --- /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 0000000000000000000000000000000000000000..81c135ba9935ec3e63b767051efb18b517976c05 --- /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 0000000000000000000000000000000000000000..2fa5b9e31a89a6bd0ec0303db19ff6f3326d5c11 --- /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 0000000000000000000000000000000000000000..6358e309e0c57614a495bef6a4e10f3c30eb8afa --- /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 0000000000000000000000000000000000000000..f90405fe915de72b0bf1f77161f19514c19f41a0 --- /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 0000000000000000000000000000000000000000..0b6726d68f858e7f6a40e9299a04a8203ae52b10 --- /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 0000000000000000000000000000000000000000..3d95ea4eeca579d6e1d8e0f5c9b7978eb89b3e8c --- /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 0000000000000000000000000000000000000000..70b7f170e77ef3b11aeff131870e9a99cc3f55fa --- /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 0000000000000000000000000000000000000000..c11cf12a084b7c19d8f9cb6b560307a5bc98eb65 --- /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 0000000000000000000000000000000000000000..917a0fccafa49f9e498bb2b7827ef5261143c4e3 --- /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 0000000000000000000000000000000000000000..782cefd82e20f036e307575ce2f409b978009e18 --- /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 0000000000000000000000000000000000000000..4996f91e8af8f123e6a3421d54239fdcd6217c38 --- /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 0000000000000000000000000000000000000000..c14947bd59d9dc1eabe264aafa8364c4a8436b2d --- /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 0000000000000000000000000000000000000000..ba431c30d0e4e36214cfbd98213e20d0d94dd02f --- /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 0000000000000000000000000000000000000000..a21ec31fd6f25c10157fc30d530cd5ac399e336f --- /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 0000000000000000000000000000000000000000..fdd0c609190a5d1a7772b0d0e80d5ea99842e987 --- /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 0000000000000000000000000000000000000000..fa4b525e8ae6236fe43f1e5e72c3e9261f0ca19b --- /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 0000000000000000000000000000000000000000..af902229a9efb27756fedafce6a8dfc87677e017 --- /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 0000000000000000000000000000000000000000..d3091d6888e30674d41743e2c0d2cfed0b6a549a --- /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 0000000000000000000000000000000000000000..f1434077f7cdff3dc02f355b53c1b15ef7ce7c96 --- /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 0000000000000000000000000000000000000000..f55698c8b2cf10b4daacf82b33c179588aad8daf --- /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 0000000000000000000000000000000000000000..aa6a134903da826e0b7e10fbb141dd6e65c5fc28 --- /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 0000000000000000000000000000000000000000..3dc73f6a326b6d2756b66632ee4f7053af8d6344 --- /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 0000000000000000000000000000000000000000..3e0ade1709d84f93836c16989343e50fb92ef4df --- /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 0000000000000000000000000000000000000000..c745cc3f48e05caba2c146680a891d69a19f1d2c --- /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 0000000000000000000000000000000000000000..cb439a86e86aced57cb6860d9d3861cde321c78e --- /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 0000000000000000000000000000000000000000..2bffab6eb96a39b8e45975fb5c64512824459b77 --- /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 0000000000000000000000000000000000000000..26a474095bd3319c888de2fcf8b1575b2bcccfc8 --- /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 0000000000000000000000000000000000000000..df59fb0990af856d3f94a6c3f36b0a4a8b2261e4 --- /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 fce64e97de3420bf1f5e4e18b5200bc4b3f50151..3ecb1b2577b8e928e412d823a1f56c59d2b94798 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 7ef623c99c72af12996e07a85837cac3215f21eb..e37d83b70c3ed0c9f1fb77ef7627f49c287b6bb6 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 4aaaba1bd67217e3cd2e4e26de01635f4405ae88..6d6ed190d9a8d889a8b64c2b076a2496b4138a0c 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 0000000000000000000000000000000000000000..68179c3ac7718fa43111778ee2ac4a7ba6af8900 --- /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 2533d7da3065fd6c80dc4a7a96ccfb91e7b4d8c2..4242f9a02df9369893f8e77a286d372eb2c214ea 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 d4d20a576aa3af7c03ba3d19743afed872feaece..43000053ef8a7240fc6e5488a180aba328483460 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 2de90ff4e021956cdbec32e3bde044b6bac02d92..0b3375117848d5da8dde0ad03ecfc8617b2e56dd 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 cd9389f39de09283208a54b53fd9c018a25b86a5..0d8d7dda64d23f6ed5feb2f24c4a61efd7d45c8e 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 897708cecab42eed9e1737d07de39ad3b389da3c..987d994fa22d9b28842dadcfc48b9eb28c6effd7 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 8c3cbd942d3ecfd505cd4b7986ac452ac25315f8..51f6d67e0ce7e38811eb140cd6f8b0c48ae0e650 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 6b19fc7ab042733cd74c96097aec5f1122916408..205a0e0aad61d24e745842b1d513d9142de2aff9 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 92abb4f4f7a709ca034c0e0598b8ccf7db5a7b1c..6b2fc8deef10e76dd3dd3d3c5df1ab1e3adb5c27 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 a2111b91f4122c0d2f139ab5d80b114c0ebfa85d..9e23f9b66a2901c34f1eccf1f7f78435deb9790f 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 258f0d2b4610bbdc1e52e7241a5766a3c36e113d..4b65c60732506029c1a02f890751affa438c0c77 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 bbf4f23caf051af24685b6341ac632cae312f80f..6bc6201e58d8feb1bea6c7166052070b626c3cab 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 6eecf76ed6c9eddc72f2c31dc8cd97f0fbd11ce1..22a041b7ce5003874f000fe617a13eefc48e7628 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 339b452e75452412cf5e2889e1f65ca2f62dc142..4e1c872a5c698be2080482fedff5eff9507bd7f6 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 06cc69ded83bf68219b97fc85bf47fb112ab51a7..67b6ba21a833660dd5f0236297f0a31f9de66ed4 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 99f44eb456558354da61c5513e7c9c9b173e5f4c..c06feaabf3927522cef2bdb20ba131d38c1929b4 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 f44d266779377f8181deb8235707be707bce423e..180eeea69a3f1c570da14e883b0e5debb87191ec 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 090cf19fe7f5177531108bf4857410864e2b25fc..507a5557ac2ee64018b056c0d432a6c372ba75ca 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 f21eae69575c11dfd70199079ad5d04972d4a0ec..f2941a976d471ca9c933af3d2221f93d9f778d23 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 388d0ff1ee63b886578218cc9694fdf8597825ba..8bb7bc646b174c0bf99e49fbca6a21535300ab2f 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 e5b074e9160bd539c25c5904dd9169a8a3a5c00e..49015ef6785028c93f3ba3ce431dec444af76c7d 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 0000000000000000000000000000000000000000..178132729cfb0092ee6862c2c5dc8e593a836c7a --- /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 c3aaf4498528183c39c777e1e92fe7ff0b886651..91ae9caf7c2b0a37de0539d680a50c8944eb2070 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 3d5b29373a3a2b78af681acf6fefc47f70f9af82..3cebd4cfd215b3f26863d9bd7c294878f44e1409 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 033742a0b8886b7e9c84274703ae3bdbd8ec1973..f9303132f58b50cdf8ed657cf6ec7b49ae9534aa 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 68bdec5d27d7e54f4f8ed3d36b52c40b23b7e519..75bfdf19e4658f78b048a1a57beab47d8014cc6d 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 452fb1c0fee3b3685466d47795701cfacee64de9..12fee0b221005197bbaf1b4592d4df9125dbf788 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 464a55bc035af9a488a9de4a79062837a7b06589..c03c264d1bf46db9f7918bfc2bfa81115c82989f 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 bd9aca7b1c51aa0afd92d27656d20c101b4c51b2..f67a54706755af44cb76a32aec348cadb2b15e3b 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 964bf23764f425cc1348abdf940a6fb6b7f2210a..66d23719a3ba7425c6dea7ea6ac08b3e7e2fa3f4 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 869d9fa201181bc21146b9b328cce8b93bea7576..e4861e2250f3954f1c1728aee43e85b7e460ef90 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 aaddbc273a95d4748839015c74ccbebfbdd34a0e..0574502bea2e7c39349e55bb786b8e94e869f5bf 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 0b5771c39abba79a79c2029378162b469bf201bb..dbeddc81248610ffae2df4167c25f092fef847c2 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 2202a36758c7e582c4923a9bf24f55718fb45ea8..c09c8ea24e334609775804158106e45163b7cdec 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 95f2ff9514ad0c4e5a36832caa50861288e25928..3e46699dd565990ba0dd8899d6ed67281c0af1a5 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 da3dc04b3bd707eb0f5235f8fee36d9c68181ba6..c5290d0e32537d4479c8e7c08d1a660a1cfb0795 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 0d41ee9edb1ae29eb38b3589268acf31d74dce5b..1de8ea4308a5fe08a8210e0f40dafe9172432f60 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 32f6eead014bbde2e9cf2bb38f999ebdfa44b2f5..e593186eda710465db7d47ad9074169213fddef5 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 6a1643b1c109d521a257419bd42c8b392114bcee..540711406d16abeef02f302a831748ddcafea72f 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 0000000000000000000000000000000000000000..5f321c66ef8b82f2dd56d8bf9e4fd26d9534150d --- /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 0000000000000000000000000000000000000000..161db9794e5b0da65eb1e5b71beb565180e84830 --- /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 0000000000000000000000000000000000000000..ec08fe223585132fca59b12465c6be38c51c4e1e --- /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 0000000000000000000000000000000000000000..d5c8f5778a2c8d82448ee024a3d7ed9c1517ddf6 --- /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 6d8a88233c6f99f446c8730a6f3fa86a39a7ea98..bf409a265cc22d5e7e5039ec5414976ffa6da939 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 128154908be4e8fbb3da41a61687aef08752e20e..93eb27f9289ac28a0bb1b413d54700d01c614e87 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 293ade6f7585da2230f3eaafde69a5258ba75af8..623f025df6520701f3513f5c166c7a49304f41af 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 1b52aa4b11e04339ad6b1b55336033dc417ea357..bc06776ee44072659822904f615b669a41eaedd7 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 08e70737934c39e7c924d5a8683b1466297165e8..55c6236470de18eb75ffc22a04a3b5198bfb9f66 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 25589a14f43b53e3e5ea6812ee671ba6200b8711..0ef26b5539e528a9d77503730c35dab532206db3 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 57b581af4216c013bea84075f001fb9ae3ea68b0..516dadde076cffbda21823d89a0b458e77f89fe7 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 8f083bc0bba37b72bfb43dee443b11c5e3ca942f..ad02a800c23ce01b1c9368f6a654c54f50687758 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 94e6957af00e297bd1c950c5b30d13e372a62bb8..0e17e2bfede9357f0ac9ddde250c1834f74313a3 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 09ccedce47c18c4b13208e779e90563910a7f417..e8a661d83010d27f1256f9cba2ac31f00b4122b6 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 8a14cec6fe3991ce10616684a1aabe4ffe1b4341..93dc06b1d3cf9b189898e4bd479654488383011b 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 0c92dcda609ccfa04bbb8dad4c4475504f6a47e7..d78fefe7cb747579abe0dea5bccf255f5c7f92b5 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 9f08e357155df813eabde35f68b7164fd799bab6..8a17013edc5678659dbfc6e5142fc8e0d74ba2f9 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 cba83ec92ae22d0fff37483c4362dcd28e288561..14c0b96f2991920dbbd939f8327d0a2f07589828 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 18ac9bdacdf36235888185ecfe373fcd74fd939f..31e7dc760412b36d1b4931e6d6ffa98a616e392a 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 0000000000000000000000000000000000000000..4cfacc3fd92fd0857e4ed8fb1aedb5fb4e0862a8 --- /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 2bfb15e857cfb7f3f0e317e221cff163010fe1bc..842c45ed17df1724b9cb8a3ffc5247424373922a 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 b8deb3b07fb543efd3f77b5da6af20aaecf4a4df..5caf34fda9ee9e03b56dabaf36214fb9eec1b7fc 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 5c43b4abaf44b4f801b88d8cf3bc978de7ce7a54..09cb54466016a9582d9b83d74c22cccedb61ef23 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 535253999a2e542a3e26078a2b821ca1e2add4b3..b0f2a1ee9289a76b30ba260e14882bd51c9bc0a6 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 175d6c4f899c7fdc2333797ba458e89725ef11cd..10b212d2683d0a39e61ab1a66345c6f834394c2b 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 ff6c113440cb93b809e879e14cc06dd5871c4de1..e03fe706a24143ef8bdb6e764c4099dccdfc1cd6 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 41ad5dc4e3c614943415a1607e2424f40004f8ee..71737e9e2dfed0104ec6146ed12ebb5a5017b21b 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 7feb601b8681c63e428abb1baa5a81f85e7b6fe6..72f24b2698a3f398bc15975022afd9ee1322ac99 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 81cf0d03ba82310cbcada9bffa2a6a9e179674cb..ec9696b627d6da69660b1c3ee124a378dbb23899 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 6729b3cdfacff1c5711da6f641d8088e051a528f..acaf42b5313f3631a0d77f3b1101789b82548e17 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 bfee4dc5787a6978c82c41fcfea5c2bc90b9007f..930c9fc4cb094f1db33a78a737bc28b755bc931d 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 8990a5411d7a880eb9151f9c3d718b86e89e97e8..3c6ec9897b83b475c34b577156e7a2ecba3db037 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 436e37b3c4f69b3bdb30e19854d6f20b5ade109d..702f12512e64cb6abbb9217ae2f2a73ac0fc1edf 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 aebdea3bd903f623a5ade94b8c2364f63b09ded0..6fa31bd04e65d3f0c6315e16fd64775b68389c42 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 84f186024506e4c8ca903c14c858d87b0e2188cb..f502af22720aeef24783c36b1f596f4843604a32 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 00e7e7ac0af2ae1791655a8dadcfe4c1247f5985..2961a02a3eec45cdaeafedc63099d48a9b2859e6 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 4c681a888ec8a57bb33e7c5758921910703998d0..e3c3e7fe14edb83d7be02eba3bbd1692dae25aaf 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 02d2b3682f2c98ac588b91a6db6aa3c4d8b4f18e..4ba24bb3f5b7fd25625181d06f2a43d554d43968 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 df74d5dd309a7f4720a5a546314eeb36e1ecbf92..0a8121535794c4b9535110679ede23a051805e45 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 fdb167ea52519145844f4b45b4da67d53f334f28..1bed8515595d2638e61c27ca03b0bed965cc33d4 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 b07a2cfd84f645c48136d7d62125aa0b98e917fe..e4b087a4ba03bf3a6d0e13110fb6f487c8f4c9c4 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 d20ba36924bb54425298ee6b213f5e16bf19dffa..9bf1f22c637b06519b7d0bb4fd0b9074b80f7d11 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 cbaaade2dd7a3aa34ddee7169c3ffc7ffeb462dc..124f6b436a982997bbe6d21ad5e98ed37996db97 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 ee04653354fb666a23c4304b0378a01a755c6663..d5abd44a20150fbdb94b8946c8aec2eba027704b 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 257813b6d86f6eb587a1a7856771215e8e743ee3..5915ee1d7d3dcf9f464c5d1b04588fe0ac2bba50 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 fe3f8ce52fac605f06414f82949ebc3c5810010b..f1716e5423f87a2323def5967d17241c9926ff04 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 3b38b276a03eac003ecd88fcbfbbee373c20088f..d1e9f701bf09121013cf17ff1b7518fc7cea6eed 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 26a2bbeec329715bd60fc1f40ef522e74af5a0b2..b7def200d356024cfba09cad6946e1fa49844231 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 fcf01e672bd7cd5b8c912c307c05e71a02215785..bfa3385620768e670f126d277120fdb696125114 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 867069a860bdde9529de0de2533c3220dc40f0a1..dae7f0bdcf0875fb8c6de043aa2ba525df157aaa 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 4ae0ad830ee30713aecd56fcda3918fc6aa5a04c..092338a351f82ea9103f50c113d35bd776171907 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 97614136d8820d8961bebc274ce57454858b1426..2168c97c7de49fa7461dd541afef6ee38516c77e 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 ac59d9583ad186804291e54aca2d400786c2c366..b32724d0619cd05c2bae17008860e3b131438986 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 f81c4f78eb6dedd496ce20cf4ba83b16f006857d..5c04bf929a29b57df749e37cb9bb00d8ef68bed3 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 42c3b7ac859fabfa357615fa460bb41a1521c95d..ae67ca1100848a0a97a40a267e770e3c8e893b76 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 abebfc8aee53678d419a9596cc27468e269113a7..5eb2f7618a1d3e19e969faf73369e9d92a6abcac 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 a7d2331f2c76a6ad6e4a4cbad2371cd6d208e308..9b872d27b817f25e38535e2d32c51a212335542d 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 00baf59fd61dc6def94ed0e9c38025682cf09876..90ffc465d88f51530e19632f2c02464dd1647e3f 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 e3cdcfc6b7699533c759f81b60125a1301461cbf..967822e8e35d69b2e49b619675b0d3a0f2c3f28f 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 78cd28317f18a722fdce5f45fea759dee0274b79..b90bd7e91b7d94a2382cd1c63e455b3215fa6c55 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 0ea3f0674b4c02108a5262ff9e50d570d6ac2ceb..78e284ee865bbb695d78d3459f349c77bc06eed2 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 377c4a5bde32d4d7a5e59bf04073b224f6fbfeca..59e675aa722b9d033922183caccce9d436e91053 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 f2e58c06b979e3c0d9a59133c99e52031b547bc1..e77d4dc64526aba17c963eef9a094ac0d20ea729 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 79cc25a4512f5ecf698e0be55d59d6b685182cbc..18d88fee5aceb897741bebb10634964013706100 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 e03e0bde39980e1220cfcc5d968d47509479f0dd..ca2eaaef135df316e1436f72870d2680b724914a 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 66a673881506d231c706e838664d17a0c9c0a661..f9c68e0e536f539df19f79e6effa126e59ee7f93 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 d6d4c3b78a536704187c69496bc56645a1d91f43..069398c6f3e27ceea841329d4cc97748232d74f6 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 ac54dd5875d3431d9c2aa3f7d63cffda1bf54fa6..f535c1dab94382ffc275e515ed110a472f7bb9cf 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 b5f4738faa1599691855c52287eff5a1d546bb65..45e0b7d97523bab0048fef86787873314a2aff98 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 b8103fac82708df230916138575836ff55599008..bbf576f4ef3e0c45e3db1f12fe3a34e6471743c3 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 4ddbd41473ce7dd70e2bb78af6693177723e87ab..b21854eb8dce72b43584e3644222c03cc559d373 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 6c7d301338d631934e35fd77d091140521c83289..d38066b3e8675336a0b60ed33f409d8bb513909c 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 188da0b0204833d585bcbef1a5417345ec00831d..57e6eb92ab93fa95089d6764070540044c58df47 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 d00204dfc689b31994a6e31ed859144e1e44e533..0c0ce3d6f08d0ff7ecdc5511424709325646ccd3 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 af4df0b5415019b112076e00e1edf10ebd9ec403..add92a6f135fd1c765185dd1388eb04e8058b795 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 b5a9dd53754770629a3e2168485bd2e0a760906a..e805397569e80c9cbe4d3666e98a09b4cabd0ee6 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 999471200467ebdb022a39352c72319f3e1b5bb2..2e38ff0c1f7d7f357f197cedba77ceeee126034c 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 f29891cdaca02b29db84cf919a1a707d7b77e062..fe329d629e3489163f1a7cff35b31d5eb28a7361 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 b569843f70a00fa1e26724e017a04e2f16aba46d..2870d47a1c43daa4f9e11d777edb6534baf09ec6 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 b906dd65e813dfd30f5b3f72378dae37d9351220..ca278c2c87644d7e913c1002c2d11afce7178393 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 f33cc5d0d05e8845ed2c6bb4135967dca6561155..3264fabc5e8b4ad92f949dbf38b4a81fdf94d05e 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 14c4939f46a020cd242d1d8e44374e2def6ea8a6..443babee485a8ef75e706829ae8d441dc52080ae 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 9df912eb575a5122841189084d6bfce52a1918d7..def2e2c7f340cddc2123e73b27d5449f137a59be 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 7ec97c0aafb832770e74e4e11ee7ede684a9bb28..6eee7027007ff305db44f3574682a99c1ef72695 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 9553a42b1c2be2f079e3c234091174f08ff66015..1f42f8833fa6a626191d6709ce043658ccd2befa 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 e51c43407d1767ad8e85ea3ff421fdba2167d670..1a2bd4aac807c2a0ccd2e2b1faa44e8c437ff6e8 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 1161e54fba769ba6a766c443ab025e8a85a80986..e6f24fb926b22662aa16a52493c9fdc0402390c6 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 302bb4a24ffa08f24c813721c6d46294457f075c..eef11f9e32a5e45dd7e01a7cd0100aad7f8fff91 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 6ed7d37faac1913361daef621dcdd3383b3ca9e7..34e075f394eff17e7a479ef7f0141e16af75d3d7 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 77c2d02b16c063aaceb5a4a07c0684474600f9d1..beb6401fe341c71c5fc7eba84f6c4fff1a1d4e6d 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 be5b504d7df47627e6a01eeaaae501d4c4f0edef..91f35381ca2f80ef9464281e6f5b0ce5473fad6d 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 ad39a395a0c8beb6d79a45ec7ff5d7ea5e79ea3e..1ddce4ad48c447d4cfcdbf9e3716a9d4131747c1 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 785e7860adc026f284960ea5324e2fefe998edfd..9c0d8258b15d278b7ae725a266cd53f2b8246b45 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 a043fcc1b39a17714d15e8f8af29a62c6600af94..9f5de25696655eb673e21a12ef268a54d5a0a6b2 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 105e6a9c176edbaadc7bc3f19b59a9ce15e44a47..0ee75ab15e26ba580c95cf55428e4cf5278a005f 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 6cc4f396b968cd469894ac639cdd9ec75bcf1e7d..ce5f64cbf53a83f55e7e5f9ed9e7d23d60c109e3 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 89db2083943090182808662549e68308231d2a9a..74079d112c73b365b9d1ad182a05b583393a3494 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 514924f9cf19aa99513eb51b3abeecb452e5ea7b..7a84f0af53fef0457016449dced644913685730b 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 443cb51fb9b122e6b17d31911bc780dec7c09fd9..86fc072121993a701b24b10ccd1f00e502eddace 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 360cbfaeb319e2d3e9a0e50cf0991d80518b86f8..0ab3427603f91f88e114c679f34515a9fc0c050e 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 76c55a6980bdd0be17baa76fabc0acaae7b26b91..05f354c18a1869c54592fa53592f18bce35a8288 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 c4745abfda77cc70a1699eed97c3658216e471d0..d3b5319a62e9fc4075e9aa38158ac483a8ef99c0 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 60e92bac6d8f2e5307649711aa531d953be02c56..2c0aa8166e01eb70394fc311ad32fac1f9b2ba8a 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 6787614e5687c408e5c7da536aabb99877032415..8d768a390db6366360261fd0bd79177d97498fb1 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 1670e048a462711da754903f65e67eae787de835..a488315d373c1bc60e36cf7ff33220e9b5c03976 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 f89732249a0c7873f47c2e2d98360c0d61bad70a..4257089fa81a16ea738b4580451d49a16920708f 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 4fdc742aa37725383bd226c05716ed5c544dc103..b135c2592054e047f4e2e49776283848dcaa0dc8 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 067e8fc2a318d301b9353fe45d747a84e89cc53f..c6f8ce62307a27a268a6919ec4496db93dbadeba 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 98e218c9b76127515865b362671e4f48ce1d7940..c92883a6363bc4c3167367c66079a6397b1e9b16 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 9f49a56c11936cd1d3075fd76236e5e72c33e985..6df2c53ebde20701ea4e9771776f9b496fef462e 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 14c3d0f1b6a57970ac6ae3ef88c0ce4f7e84d4c7..64639bbc664a7e2da1ddd080d3ee5af5e5949d05 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 183f58d961b888497c3404cea1d09798b4249636..902e7147cbaea7ff3434ce928e8b34ce95c5230d 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 1a9fc68ab509af518d74a268f51cc28c08f93fea..9b05acb9476f6e53d9d132544b202d05e91050da 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 243bc26372a3d18431f6e42720d06ef025a89254..c69c32b7cea156ae1840952f80fe548a0abd586b 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 26da0b4f292dfb75c370429e35c90b89c6bb779f..41a09b45561519d077ed46e9d083c5b59f9f2035 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 3cbf656928c6a42d464ca6ef64ac8184e07a8ac8..47242d0219d67dd1b2734a8c2da22a0c80c91828 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 5beb708d3f4380e658b4c84f5d6b8327b8e024aa..2e7fe7a308a190dc71afb75a88641943e962980c 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 de52bd1f8d5944d14b7c7c604e7a9a42e35f7822..90405709f0f04bb9533f001a3274977b5807196c 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 92e9e42f3ba6b1dedb6d52ac781fc45c49a90f4c..7bfe87fda25256d1f042520e1e492e0b549fcaf2 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 e050e537e863acbd9572e26127346a014439b7d5..2af99f8ac14fc8f9081ec71510686ef72af56f83 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 9acb8d7872db287fd3f575823b57b4a75eac3ec1..f2da51025c5eacf683e25aba117381dfd185e2c2 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 6c43539a1ba0e7bd83e3790be18afbadb28174c7..8728e270d629a422eafff4a8dd487c568f7577ba 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 9849751e334805bcdd6895f12c3e29ccd2c496ed..21dd612f52f4ee95eb34c65b2efb61d2e9634972 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 056c056a3e27e99cda8bae532c720f813ee121eb..59374f44869cd739ea3ce6bae269eb66f1063773 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 5a46fb6168b02a80605347b8c1ab4d7cec794768..357141c0d51fb99a5eb79d3b45fec0c8e70fd8b9 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 f4061e5526099e0ee43660e525a3ceeef71233eb..4d1312d163ee9258bb8f4908982b9f07c5a9d2e5 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 8636ec4fa873a75c79c816460c6f297b4028d748..2d2f0628884afd911c3a916169364fde90ea1819 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 415976ced52ef13e5f748526cb60daa47ee29de0..69804e24ceffe9c55dd809bf5f249efe07325cc4 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 63b593cb09f7b4676c8649ed9b34a9902efb0fe8..6fb7e4f553c028b9fb37e70578c636875604c695 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 602737e6f11ba0a3e6a2a27ac74888c200bccd7e..3d4e7970494947454e167d9d3bec6d955c29a4e3 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 6f03bf2d25a2968425d45d36ffa41d8659af850a..5e8cd9e93a019dfc2ee9adf5f511920811421dfc 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 26353aeef21b92033da2d769ffaf965b38622ea0..5a17f7174838700a65f6c3734e0a38b71ecb7c96 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 76f308fe63a27318af6327f02f1c155873279d81..09c54377df10650e05a309dfc5500b08275e25d8 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 9a6866f4917ebd4f6afc02ead86aed3d57c150b2..178651ebde6d3293a80af83063a8dae8bc3ec284 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 99cbf7bf57fa0f27e3c3624abc58911e558e2ff5..14ad1ae732d366c6ba86713ae64df0e808dce9c2 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 0b2d9b695e151cca6e88f94c24f71a9e9defa548..97074cab48f0d139c700e04e4a5ea10247f92b50 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 ed6f8918121317bdd5557fb045e27d91d3707263..37820d7aa3330d831970081643bac8cee4d2c573 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 4fc86844a228e877fd738f81f765cd350d8f1225..fbc1cc61b521ffef0e1893d2fa240ebb64e31168 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 7ef6416e01a93a593cf12945f32a34c0b65a9b1a..ed3882f92ea8e327a26100ebec3d8271936195e1 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 cb6856a46a703f922060b551a70b450ad227b6ab..64c732fd5c76a1d82ed7bbcd912a79daffb6c148 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 933fb5a6db385ca73ee375ec7e9285fd41c7072d..59303b54d29f7b18dad5cd1fda5a3cf8422961c5 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 a670b04bd2a16449111b7b242305cef4ee84ec8a..66df3f3ca5cf5e9f83273f3d2417f2fc84de5290 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 aea9a97f9173f4991e0be79a8f7a08b76a0531bd..284c395a5d210429ce8f3560e171438b59b2ee1b 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 3a5c4e8ff1fc23bc69bbe23849d53511e90e2d6b..5eb884875b1ebcd1c78fd5a64da5eb9acfc7319c 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 12149f3015041f533fa12c5c00cf08febd434e64..cd0f51f321307de2900d0d8e91c8c288b84f7f60 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 0558cc235faacf68862ff818479e7d5758578f3d..9a908980c1af19a7e6962e8e046e987d9c97d89f 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 f89a326ade98439e44fa3b5956374cdc928eb121..df1379932c40bf3bd95ffb569b97057a6da84924 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 acba5e87e743b7013ff757b8c69a255f218e465c..c5f8360315e05684ba5204a141eb8c124aa1256b 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 164df2941382e77cc4a8d909aa07273d4474b822..08fb18668fe52b21576309305cceb7a9ad3f11a3 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 4c713f1b307e2eb87adff489b95180f4c1f6bf49..3026a792dab2c672a3797b0fb53c5a41a23ae3bb 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 1f62c0371fa74349b6c78a04ee1c6c256bf4c63b..42b23b0132e412b599fc1ed750bb66187e53ae6c 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 ae6825224747e4b78f9e5c108c061f280ccb6857..dbf1d21ec1069484e9840ec6385c772d2adffcef 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 da57223e2bd8860d7156405cd37b84e755935853..756317b6f9cc42611e2a410aa0e26c6187a51d7f 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 fd3fbcfb1548a6e48c05f1d275466d70d1b3e541..87886fcbcb44f903da8a91921188e3f8163c09af 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 e0707f201555034a739a4c2e9bce104f17386958..88818b21d23cb4859a71ba2e5c711ddf94a6387b 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 9c98f7ad0a7a6da10a186b4855a334353fd0f461..f20320d784d787bb710cad86e1f642be4cab553a 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 ad7b038a272dadca98048a49d070d40cf542dfba..882a85c36a6ba3144bdd21b91e01ca33078ffba9 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 7b87a773809878e7c7999cc0202994a65b01b8bb..64fcf85715ffde5431cd172be5c3a45c3e6dd2ca 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 16cba6a81e9ae2240e496a62482f83203b3e9507..e6ebf59e53ab03d2a9a77678f6b40d91bdb849a8 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 a9319d80719e113ac25555d70bba748cdbeb3a91..2a6c63775526df652169d077cf69c83880da0672 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 e63c1d55d726a1bc328b751b424183d2c52e2d17..71789d057e361b1e0bf9a3996c503b782c08b59a 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 928f36e318cbab60a4b6f4970fd73319d0e9826d..55b642368313e8a40d592baec888c05546e9f525 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 73648e4fd0406f5ed5e5d7fe00271f121b6080a7..a6dcd1e4d2d8e43af0bafba46a494d47536ccd64 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 409c9bf903e5b55ed90f4c0d23ddc0339a8b19cd..eed0c6c0e0a4d1c7415c1f33b84c0d92427f4855 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 bb02a40c235d3a4db693f69a6bb4420279aeea51..d835d1812d6f1a775110665d917d051ebf32d7d7 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 c9ed749ba8ca8cf00e449049a5c2fd1aacfdb5a6..a6d88c0ae1884094046cbc11ba2737eff437ace1 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 616aedc989cd26d2890e2368c03bee72e45c8fd6..97f85c271e4db9b28732b7a0ab96b58dadb437ed 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 54f8d4e1c464536234173447791699da86bac8f2..cad32323bf48375066121aa9b791b3cde8f6639b 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 7e3c5315b5bf61ef58a5b2c4483be0e0afbfa0da..80759b0b13ce77b27068c1a26d8fea2c0fc245ce 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 65b7d344d9de1822e83d3c364231bacd39e2d90a..13e47409cf2e9387b6aa0acac508cfa15fd6bb16 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 20eeda8ea74ef3e5543f0edf62b7b5f8e2e3aae1..ebdac590d054271c0bc7c3ce829156711dc00f2f 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 39f8ada4a8e62e78216ac2c3e54209805cf8b224..46d08f0e26bf4cdeab404f9968f7354bf9d95320 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 61713cf0cea34cd48c6cbd4f1ffb5a99ddeb0d86..23d085d27974a6de66c8f7447d67bd59d9c4ffa7 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 7756c4d28d89fca6eb438923f3c6e82f1fb0f1e0..46039f863594459b5b554cd8655acaaa19e38bbd 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 431af4f636085985c510f53e7d3eeb09825f124f..2257577102058e7b0de07c9605b960c8ca8bc2a4 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 ccfc9638e5f3a5350c91bce14d3c84b5b281a538..a924529e93af4dc1a026f1fe837b287792b5aaf3 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 a7858e4b9cc3c8b1c58c059b94a18f2e49b7e792..f1fff8d55f441e0b80078db7b83015b383bffca3 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 c0c019e6f1e863cd7734e46e955aa42c09691183..e82b39f63a73fd7c8e74df77032a6f83ac3cb922 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 abbfe0e1b78f980c0640143c5a4bbf392dda8a21..1beee891f19f254b410960fc1c72e96b079b7357 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 198deb6707f96b5556683239f4ce01b39b0c8b3d..5689edca43191c56759a7443d510f819adcbc34b 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 cbcd5fc3d698a67efa82f99bbd6a5f9e1ec53239..5a7f50622aced6a946788e11ab90b659e8596992 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 65702d85303cb8f6acf2938edf4f598bb4b04e30..8f2ace4ad743f10007ba984fe482a81d77abc649 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 c9151236173bcb20bdc17806c6f38b40c77fe933..c1787b913ea36aaee9dc8ef5ad8c87073a989e51 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 45ca4c5d672c010debe97974a34c4de9966707f5..1afbd99e3077bdb1965225d48746a88ce9a06137 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 91a74f415e3b37c92fe35222499f8b511c43c69e..b3d7044dc3426d0a0512ccc9c48edbc945dce529 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 ff9239b55f9bb964ac87f7c6e05cd0abf11e54c8..e086aa8f3f3ef027d9c9b83b387ff25d84c8fd42 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 d7e11e9180cb0fcec868966ce6448e60c1ff1fb8..5bbd53e17c1760aa329a81b7aac153f0cb54f6a0 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 52127531492d4b155a3c9bc86a6bbf84f452ecec..f579f4fa0feca143b9df858e28a32e5d14469fd2 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 83bdfb893b7deb450c24d65a16aa5cb9fe54fded..21b9e5886fb889a4043a19b477a42b6e5304bdeb 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 823c88b8dafe64ef6687b23fcd07e4556ce987b7..0e579672fc10eafe22a0d317d4f5a2b41065f0c3 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 00e5f27682d0da846538580ec6145d140ad0d309..fff108c1035497757422550c8adadecd7a20e013 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 fb97e4d565d5a2fb811246365bf80bf28024f9a7..ecf26dd9fc1bc6c41b316d6281f750cc93b2c8df 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 0000000000000000000000000000000000000000..91bb4af63ba7da7d2ff077133f4b5ebc3ca5f66e --- /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 0000000000000000000000000000000000000000..3023e3174ff0dc1d4db5c4089511a76c644bb923 --- /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 7ad962c8df0318be9c85c4ce654b8358994d3163..624ffd6daa839d3ead82aa171e19d14a4c33c69e 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 e4db45590fc8fcd0537623dc9fda53963dd3ac18..48d3a5877e9f555d964c5788b0ada64aae96fc03 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 b26b63be9da33427b27907cac2a3abaf5b4038e1..a974a23608ddbcb66c7807fb9cf9928cf66d201a 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 754f9ceb64d404e4aa85cf325831e6055e429808..11157ed4a171b845af0840e6b6d8fe96a24883af 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 17f19820e9d95ed2f671afdcb28fadab4599c8d4..49ff97e84e2bf0f98b2ea400799daf567a81d1eb 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 0d338236a30b2d1676710098b6f352ab2b7b167a..990d40896b0e2f9960bbdb6be02ea2a05463d70e 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 b196d90c072ee415a63b4402a97d1c7b260db3e8..0fcebb73d3534c7b78bac8b204ba299fc5d7b882 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 cca33f8b43c5b008249d58480623c1393ca2c90a..d547301a6c4962416d6efed619cae521e5295f47 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 fef58ef807a718128a6e18f8cd44a116196e80bd..cd820c43e2d0b16b0061c7484076cd9dfecf364b 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 5e0a8ee0158892b893b5662f2fd5600ee9bf29e9..8bdaa41a39a45075b89762cde6197699757f477f 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 e632138b36bf00bb1df9959e8c831691a03c312f..6aee32272b0bbf06e5aab15a926c8ec0a4c6c27c 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 3322a17fc2f39788fd2afab723bbffbd756141fd..e3a16645f06eb533d316264c66922133c91607fe 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 307094bf593371189072b03a227d88ad04ece4bd..ed29dcee130680177413a0115aaeadf26970e36f 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 a2c72a2a2fb002055dc81a0d924557beb41a2dfd..20d7327dac4e58010a98a9e009bc7b5e772bdaa3 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 6b9ea530e32f8162efbf0dae482d1266fc8fc8d4..650dbf6caf761e05ec30d3c8302c4953cbd7e7a3 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 113126e7e33b23190d92eea8e9f4859fd22453e5..2d8a453199b50f5939de595df812d2f0e8b841b4 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 59de155e7ffdb90f1d51a378c7989e19bd2a49e7..d495de2e24be349dd6de2495cf9f4d297e3925b9 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 9e7b2420ba4a7edfdd84072d89bae35c5d6aab30..8e48f5295a178239902f68fa8565834334e6516d 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 5c8a66e295f62ddf8f70c0c9732d9b675351ba91..a9395667f3719d71809462414ed3e7801339830b 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 b8ab844a0c719a224a0a1e92b68a67a4c06759c2..77d51b729d667f4983ba2c77a852a77e6d863bb1 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 6230e1067a52264926ba9ad3300dba7978c273dd..3c808f575b3fc2f0502ff9662641d27b1efc4576 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 918f5dc6ea805a59dc738a2c5508fbd1ba19616d..d53ac20a43b9efe9b473eb433df906cfad794df5 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 1e3277414de302604b5d63f6b339e1f6f0c5bb35..818a4e9ed7a5c49cc651501748da4caed9f33b34 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 58086094d33083baa18ccd7e1ec6758ae7b660c8..bc10c8652162c9138980fdc264d34972fcdbed10 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 edfe53a1f3f69ec4df7b63585b9c5b82847248dc..b26833dc0327ca042f1260160f04178f60ba436a 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 b476b966c1d9199503f51d574a3bc2f1b88dbd60..815bef534b81c12c331b32f76ebdbc8869339805 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 9007f7f7720f7287ce9bc62feca1725254895be3..caaed15ad8584283dec748b197f0f422715913e3 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 8da2bb05bba1f6ea832f9cbad2c6213ddd9e1ef2..d16a8e9f9ab28a6690fc48b67f0a4f14505176c5 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 5b324f601bee5f5320add4c6671463c84c035b7b..8efe546e85e51af064cbcf8e258ee3263dc642c2 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 cf71741a56e91eafb3b9f74349344c4b16b76709..40f2597906d359f6fb6b2eba35d626bd7d91daba 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 d94721c2ff2079c48a74692975a75e34dc691d4e..852825abca647520ddb1299eb6bba2739a6d1283 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 11e1bf5eb358d69351737270fbcbc143ba15e765..8e92770759374fc0d61539722e532cc8fe45b210 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 a9ef9644341a49a9aa15060fa041fd215ff117dc..8c930e83a1817f1a844817026b0db9be8514698b 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 4d2114808747c1e7c97cf65ac1fb0d7d90728e3c..a0ab58074c1308210d2b6c1d6f4c1d3233ffd7fb 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 2b166b528aeb9731720b937d51ba0cf9869c8bac..df3496b44e7a44d0f25f01a8874634aa50090910 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 13c5c9dc06bda0bbeef91fa595de5c2ebef449bb..d2f1700679451552f46c3e6a7b6c0c83562c987e 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 5477405d5293ede32b0c03ab71546fc71a8fc4a7..46b90c804da7b799f84d5c8e6f2ed63e580b6b63 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 a8d7a1678cd64071368f9ccec80f3ead12b55ecc..1e2edaea2c51bebe97bf1f739cecfdf1d48a4bc6 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 1e41ebd37672b99ee15166de191d3775e1554327..06e870ca0614e78ec04776c013350c77b91f71dd 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 adcf4596b490ff4e342d436754dced883f06ef17..15d51da3bd489a9f6cfceafe1dab70e735afbea3 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 34ef0a56d299eee9f4a57846bb0e363760f4836f..1a2ed9416e6b3a46625337a8c4a865784db720e9 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 bb003d3a1e872ddfe6b8f31c9f0d81f4d952f412..48d77920de1bb80dd27ca23d8a4855a67c95014e 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 4c34db2610a2875c925fe388446c1e8144dbba3c..8ea5a1e0e93a482348e94de9a9c68fe02be57947 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 8f170bbda489a1c45657c047321cd1194d33935a..322199f9ce3664548f9f593d614e68518280626f 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 f0fda9af7b05cde34393620e4367d1e1f85dea72..feb705775d1c54b39f867a003f9dc1defd760aa0 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 f381899445cf3d9ebf7a6cae50e0608b3cad03ef..75ee772fac64b0d0f9f1051a91b13ae0cc43014a 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 66366d7d6eeb8c3f5f38e5ee77496101bd62a578..d77a911b7c0ca3d29324ecc570849b97d0d8f795 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 78c044b771e79cedccc99ae54b4745e556b5ab7d..dffed34437118b1e2b9aa9fadf4f9caf387c4024 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 0d371a8bb5a743cfb168c0938c49230c3ff88d24..e5e80180b5c4a0f20021d00990637672655f3797 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 493bcef078397cbb17204df3d7ab07417fef72e4..b8faed2aa724ec20043bb6a01fd7cc19e64c5750 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 cf07d0ff13c6df4a00c21e71690c8b717f46576c..28c245a9f1da43703fdf7505de7ac6eeeae1457d 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 78a603c62cbc5bc9e56fa0a4f7cb4004a306a125..4e1c9261da748bb02c5ee64a5a86f76029db43ad 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 af2ed2e41bb5f0fd05465fc62c2339b6f933dc4f..d93c8f8218993baa406a0c2779289c19eca1d9dd 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 78d71fc913ce9f05cbc8f4267156259817e9f5a5..7b86a4f99aade62f12cfbea4cf4204fcb08a4a7e 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 46f45cc2ccc1fff17681de6ce7877cfd3cfec43b..9b752e492f3cbd7adbb66502edefcd09f6602e19 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 56d13d779f15216107235e80edaadd13402dfc05..16de595baf08dfdf7602f9e628a8220f5ab2dcd3 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 f147907b53059f647fd7e80870c35c94d45b61e2..4e6801938a092c20339f3e9ca5a9c7f6f3d5afb3 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 b572a51146c28bcd0b0483139b4fd455e87c8861..3df19986c957ef110951264f7d63eafa02b72dde 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 f66d11b780a67efb8edafdbeee34ab2db272ec90..7f5517fb4111df6c496fac0caf11bb92d0242a1a 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 8cd6b4bdf2e83de4c91996a07566ecef403f7ff3..2bcc132045fa44e29d2123d2f0dcf195caf01d98 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 5f64a27b6d0a26146e5195c76c1f2cfc21658862..46d9eacd691477793f6ca5af0b6a535b23340aad 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 e3bf24d89c2c7767e8f3e6d27339abb404fa8579..c8219d7ebd1977a0759c09b114866c81a440a1b9 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 4b30f830977686e689d9bfc0840d60dac98d2227..f3ed324e99ad8f1236cd50c228607f2e5598a67c 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 ac1b93caa7f68cea2b9cb3aa9bee79ced04f5ee0..4ff8f89b8437870e887b8e46eccef0701d4fcd75 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 b2a99673886f991e9f374a8395e7796fd5fb2e93..24da9e98fc56ebcee10b5d5a7ba10258df4cbf53 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 87f3d53ee4718280cd8ebd59d66465dad503cf0c..c5c98692a90b29e0b88632c2777068f578f63c90 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 7aebe9613204275046212a49969f91f22dcab6c3..372c676d52cf32ebf0e6a5ab1266be54f90679ee 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 974c9f487b24767c867c0f6c348811871f468a37..d66e9c8883003525cbbc1c06eb4de359112a4d5f 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 f90d46d48fdd86d689a6cb83c533cbbf681fd830..ed23954c3ad1d13632515a7f7baeae05b5548f0c 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 d32a757e510f8ea39de2783d8f0ec4722dc741ce..5b13ffcbb14c86d539f218e89599f8f2d4bbacfb 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 01ee0ce99ecb19ca1c26656263863f984da3a623..2e721656f6a4a443868a1a3de9dc15bcc3f38e8b 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 3ac1c938ddfe1f6b837d5415c2f8f96f48fc238e..4d1d650d0c2328683a7a711ccda10be388c0ab74 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 2b549c21796830989b9728891111d0218d2abb31..b11fd6d08cfe0fa5ae06fbbdbc4ed771a297e637 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 f82cb40111471e0e9b6412dd8b0ff16a8816772e..1736080e7d1da274e951fd325b870aa63853697c 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 cdb297250baa76cba810dbb88a1c4735e3f70013..b9e524f0e5b65c2fd294405a81ca40208fc14e8b 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 8832f4734c13ed18b4f3a47788cdfc3b32eccf10..07efc20fc9998ac076e313b09feb6397625309f4 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 bc0a223b02309a3ad07eac8ab6fa7f4e53d5e2b3..a8807ba01737fb9a2137a2b6f657ca3438cbaf06 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 f79b6a7d666895837082cf49c65f2e5cb0eb9f1f..d17b94921f21565a31dd1b900f696b751851503d 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 894bf7c99bc890d42fa730159b0a03d2168336f9..5a189f3aff19803d0cb7361b01bb88775e343eed 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 5a7bf4831203326be8e0aa849409dc2f7536825c..fa56f558b5d94d18010df22eba000ebc431577f1 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 974f71e8e4cee6184fcb7d3255057de58f5824b0..b12bb3d0cd9de5303e245ca3b1e2c32d9b594734 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 7ddcb3c23c00f5bbcc1f641497058f701f164eb0..e7535e27863da044376f59d54096b1599e1942d3 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 f2454f07f4a858c32964ff238a88a8720ceeda6b..900d501969fc19f66da23f050a0fe3ca357bf13a 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 9fed12106fb76d8824ca3d39f6bd0535330edb04..40e391b025301056e3bee810982e823c0f286d4a 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 47181278869bd5877831c421e72c7096afa456a1..4f67a78903b6b8e9e1d4e6e3773830907a2f87a9 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 40076ffd64444b04293ef524893f844a0f6d7620..ca1a29f6cc7233762b425f248fc003b233130ac3 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 e0f5469c13aefe64d09595b0d5bb3407047e404e..15fa6ed86b15f8fab60eae76073e1ce0ee4d6dcb 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 46ee8e36e69e9a479e5ee4dc3c1f7d4d5a93600c..cf14001faecc95b0ed6a0a1694c3143f4815d28a 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 1b61e61a13be987e3dacb01716bbb7d739054041..6d51f0bcef3cb2dc648ed763f772ed62a71a0581 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 25070745f7c77fe0d5f67351b70970b38ab80de6..b47fce36950d9da12608d87ad0981aad127eee5f 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 eeb2462c616b4c8f1e580e5e14f720920b9676ca..d86f2f75dcc2541c5587965f6a7b1a79119f89a4 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 e47199a6568b7d30e1a2e399af4da7e66b9f629a..3a207db6928536d7ea8c7456832175110b5fed94 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 4efcb4a019fc4d03705356bfab43733e77d0d401..8edb574b353b6201217133c79f77ac8e0ea4c657 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 c94f89266d9da5604eb2bec4f29def553289068f..41d2f145c6171acb2e83be889004b9e6e2261a7e 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 103dca76a818b6cd16e85af0bf8ed2cd2098f65a..cc6d45e7306e97f3fa3d61a78e29903c7a92c223 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 c3894e710e9f6b6e8572c6d5c1b7a895f83468a4..1b7f85de3403f079767ce5a16a65da913ef904f8 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 129ced77e7cf490c495f2fe217d30eda6c54ec1f..5981dd7cca4d31da54b72858c2a0e42bf01d8608 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 4e5cdde37fd4624ccedaef8f0bf89ef58bb1c8de..8245da2bf368939c32ee043d8ae2f4e0265f0c7c 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 310082c236391961e215ff04f331f78d3cbbb6b3..d6fad69144f63f8e9e13f0e7ecb89b127cf9226f 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 4818f36f0ed46defb90bb6e0b7fac46c1e7d859f..679759395b98727b0614214a8f3fb7649f7aa1ef 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 4785ead74968b13c4b78ab4e2fdf61d7e7596f2d..628bb98f823e80949a47ef98818e5ee104c5b86c 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 886ba99c86f9f24cc8ff5284cd6ceb4b06654b8a..5e46f043aba881af3932e93e86cf88dbfad523ff 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 8380251d43fd50be89ce45b9772485d5510bca0c..bbf07780ec384c9e6acce7e3981040fbb2b6b5d6 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 afbd96e18f035f40e7493032fb6f03c1c2e14071..d8c4b9b163c781fa51ffed9d09f52394a177972a 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 161b702b3eb26490183acb18a07b0053f4acefd5..8675ae431ed134674b62ae245843fd14d62e9d52 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 beb548479de8501e7f2881f680ed47a1fd1dc91d..dc07f1f9858e0ab6bdeb0733a8d9219ef4aefb9f 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 e9f8b35ba68bf4d096c19158e32b5b6a3906fff6..d73e3df5aa80b7614511069bf3296b4b99d12cd2 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 dd28c93b869c6375783396125738637a2e6f9bfc..ef2e9a92fe36d62aa7558e27e3babb85e31008fe 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 63792e00204ef6e5531d999409b117fb4bcfa442..28bf5bd9c98d3a0d6b47a1063daabe17ceaa2d11 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 8da40f6ae750340c9a3dec94d67ca5664517ef74..440de483d9eca90814d72646608522ef26c750d9 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 1f80c7d417abbb8747024f7d2e3bf3baa2e66b15..12b05e5c9434bdfa06619dd123fee5e8c3f469a1 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 8ba6367102a5263168f2f231880e410ea80c78cd..670d438a882baa28c888b48ac4eb3eee3595422f 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 f46c66bd60356880a1470a849d7c2a53b53a0c2f..97d4816c3ba4a99e3a783946a6825b928088d01a 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 7847dce6897cecef2e4030babdc9125e0baec460..3d60c4938b6c42fb932b8d566271bd24de0e901e 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 460b3716cb6d8d7837b73cf9d784d59caf1d89ac..3fab65b3b6a24570c13d83b7ec96d4b747754391 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 f9b8f83c4c6c18a09c09f5ed11e4301dfa030271..49384b7ad80b9dc5cbbc8d167424ed43dc87daad 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 598bdddc377a2c65b387a2f33436b0d081af175d..e9b13e4fea50fab4d58d85b6515525cb8d581ea7 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 efb8565e1c86ca2b166b9f117b485e14853722c7..0f81edeac8c04bc0a8dc2632c51989b0b39ca339 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 c35f845ec943a2378f8e50c35644a4fcb5ec3da8..3decce605eeaad438d1fe7792a343d557f7f0ed3 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 a0609fe169cca64e3f388f3a5777068a82d0755e..3a0a67d8e2275ebbc56554740e3d08697ea009e5 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 c88c4084c1ed620227a81859fc45ee50d922d82e..81b1cf9269559a259d605e6e4a99b4c28bda327e 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 1d5a0149079ac7c56b86141ffdb68e2e43943947..818766ba2cd30a7833105a850b4cb8f33d5dd52a 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 f2c60d3ba96f8173d6100e4216a499aa1c16fcc7..031bb05e1502506f85beefb091d453b9403e7db2 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 a03663f8305f8ffd2e93183e64d0294e2a143a61..8dadbc59f024ab38d47e798597683eb3304954e2 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 cf23f9ef63f264df92e05daf0c5f674b3b3ef7a3..9630d7c7269528e1df94bbc0b73f48dd843ddb9b 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 ac30fb1df740b6acad71e32f6e747a930d6f238f..3d59818fa308e6ca2e1a4a55f85166b906b993eb 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 d68b33a22705d0779f8974908e62011ab16f551a..0f4be8c1e17e9a964beacfbc606ceabff59159c1 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 d7e404404e06744665bcae791fe5dfcb9f771c24..ab17279791261b2d0c8e3ad6507f565b72ebac04 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 c4347d1993271419c74501e81a2956f38b3b4878..c409b882c5cf17e52a28cde1123e53ffe9d909df 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 daecf9dd6ff035afea30db32dd7521d11e4f11a7..d0e0e9e4eaef7bc47666aba33b7dddb723af3727 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 f81e48e5b1d24105618300e1a624e95d4858c1b7..813abc03f7ec7edb1f02d03d04d16bd50cbd37b9 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 b855d140be71958551366c2253058b216b1128f5..beda9fc85abb35098d56064045139c4e347f0a22 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 552737f70cf7a468e4c33f96942b3303f5910428..5eedc3ba3b76b79aa55695635f5a82297318d7b8 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 45dc617138773dfef97826f98b524f031c40139a..1d2ea2157a8261f3e3c223e7ab11ae72f965728f 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 12aa05221624a96d23b2328143a5297a5f3edec0..d59942b8f01ce0c7da2401e81c3acb5bbfe0bee9 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 fa131dbe04b4800b64dc1ee6adab6bd6a80ab787..1fa35e48fa3fd1626176582a83991337fef15d1b 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 19d9fec225b2c1e4ee9d7a4c12498554dda8bdd9..16f8370794e5f128b263dc7ec8b16b4e772e7c37 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 33446abc259ac9b9bae874f37141a54877ed78f1..0a204d012cef56e2e2ce67c3bb2683c72ee1a913 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 401c59ac1c6b4b782b8ea8bdbed82c6a24459a7c..cfa005a3d03bf33191afdb7fb656bd40023a7622 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 012694e5589a7c5372a57b5ff6a2e351477cb624..ea016e708f9b3e99207cf4e03dd1043b266546c8 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 9e50102597c2ad6473723fe52c621ff95f742fc4..813a64219214124f8776d024d1f8d99e2c47f66c 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 7bb942d5d73aa04dfa3be0b86e0c1cfdf142e661..4fe630fa2f36544716278fc5a52197997144f053 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 f714b1f8c7b7f26ef020bd392b7602b1816c3809..9419d99cb7eb35f020c991cce334c423576824ca 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 86e691221d972ca69b8072bef055eed6808247bd..d48cdbc457dc720907b5ee832c0f2c9ca6e195c3 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 a07e355a1dcad5005570bab71e3e1bee194f2f9e..f265fafae521616955c64da10e869235f1750e65 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 6fd08bd404cbb91ea9850e9a3ed82fede1834526..047c43b6a1f90f07b6c89aa7a8050e019648bdc4 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 473f902b39a25a000e66060f2ec6ba876f51b9c7..aa7243c2414a960ad7f117078933727ca681de2f 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 1fa7f02dcbd5555012e283911cafe6881fbfb220..5ef6b212d5eda73ea56bd12332f5dc4e6a81bba0 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 431a31d6bbb7a9a060c4ae014f565b15d4064e57..20d252d94b1e3d27e57d1af0e132421aa1ab0bd5 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 c83db6cb97e4857ff6f3ec70ea327f6e67b9745e..35daed90500b7d35effb4035e19cd2e8fb813679 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 4ce073589611a8013ee154d9d44b9dbcaad8edd1..2f6c213258fa2375e16cd45ccd241469f331da4e 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 ad4df67285dded9affb6abddfb030907f99b90e9..408524a9239ff247c31734f4e8c43285b083a53f 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 932b67de44fb5a557930226c34cb48a2d9a66fdd..143dcc7d4838e5160a907c2b128f9f45e603f784 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 b3a86365cf03877f565f7840b43c39fdb5cba7ea..6d7863e31a7c625866c1e4d64a834947864e9392 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 9fed558ba654e8942e4b29877def49709791d999..62bf93e2bd767acc526807bb3dcf3a38dcb48373 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 3d65b91182a5b34106f0c93ec33a791756332581..194d200dd7c75a62536730d8f62df5de722ea141 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 7ae00502aa42eade209d48fe6ab5332ce084fbca..ee0bf10236724f416d78bdbbeb2dec3b662392c0 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 278961b53f87c25230c22face55cd269b196d306..4c4a1f228f34fb2c1adeb63ee738d591434d46bc 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 4737690f99adcc3716dfe3ffe84ab997c09a6298..5d2db7264f8398e76429a4ada2d4bf8b24589070 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 749b97a2545bab6aa49dd5c618b089262aa7fa5e..f87725b25c5d4f62b8222c6f596e86e3fc45a281 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 bb2db9c284e88fdca6cc798883ab8dea71c10250..ff419d06aa489584c5501445ebdb23841766cf9e 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 6daa4b491e931853c96028bc618e04cc5f87227a..b827789d1f64347845627244e6f7bd1b96e095e9 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 604366b6160d39adeafabe7c72075704950573c4..218e289927ef342562422c4e24fbf09a233e67a4 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 a7c7902c618a129d9d7d1adff04785138c630b06..580d64801731d4f46d34a5401d957353842fef72 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 2baafe241f16019dce72bc69e0dd6a40755b63b5..60b649bcdee01fb8ebcc242a05aa83f72967d6bb 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 8a9c41b0ced4c8d4ba161d852b6cb43365ee9b46..bca6a6e8428b57255948468b6b76ed17466080d3 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 15275f8b3578ffbab8231e114a43c34b24fbdd4f..404587af669dd6e5ca5407e3f76fa6751df65046 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 9e6dfa0564d5fa2105e5043890c563d5c9e05c3a..4634984eb32219852e0b8c46273fd8ab1346b191 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 f1618b575c7d1077c30aaca42e7811405b9b4aaa..65970f50a98d2ebc0537a08ca318e485d7fb0093 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 0000000000000000000000000000000000000000..974d0baf028f27501531aaaa069fc6df29056aaa --- /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 53cd757ee488c3565ee34985a8103c4ec8bec36a..e168b9be2e391805133202b21f24622017aae222 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 c2cc535444599f0a4f9629cff78b61d79704293f..73da88c5dad925002126398da44f5f2b9a75671b 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 a7a9afc186c89352a1a28eabd87741fe3d241b3f..84fc7397949f6b59abfeae7c1b0d178d058bf71c 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 a3f34f62315a73cb8ec1bb7c300b8f3e7294e92e..30e1329cd16d981c4610e73362e83108f0b6bc95 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 a4a5309c1b44086b30d34cf9b62cf29bdd62e100..19cd11fcfe187b9e59bd399b4c1f913bb3368292 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 3bb944903ed9a108a5e1c4fe0a4f8dfb23959625..5957667b288d0e5959795b521c664d3684783b26 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 7197cc1505816fb1b408e449dab6bbb1215e699b..8fe224096a8d19f7712f25be69297750c5e2020b 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 359b134baa9e6a83240e73545262c313fdfd1f80..5ce80fa816d94e8d6fd74a4f27415c3f309ec9c0 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 e94cb347f2a4cbacbda06e838891d55b601b82f3..1e3a68321545e8da986dcd639dcf8d703cc4e771 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 6a2f0a86f4cca610a8d3a0ef47dc0ddc3b2ed2c0..394d4eced6f79a7d998224216bbfbef456b704f4 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 6c7c5d147420415cbb669f7847522f5866315e5b..b140b637ee4b9980489cee41a085f0dd68fa9ba2 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 9c4e61ffefe9d3089c6e11a82e95cc297187f250..bc5afe81506b8800dfc36dba204494aa0486aacd 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 f7f7cb2653c6575d44249a2642bcfc460ea1783e..edb8ad4cbcbbce705e99c2dd66e75973d23099a9 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 34cc2b1cccf4f2cfcabe0365b1d21bd4d86e0ef1..c460ddae118bf26139cf56eb727c2449fc52d721 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 2dee0bb55c7727a249783d68a2c5b27420694ffc..89358dbb1b34c5aaf3dd28b45fb16030b96b556d 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 3318a2bf8c721d8364b9612823d6f96748b133f9..80092c88fabe1f9018ab826999f0de01810f2604 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 138d00e42a6e5e444145524775f614f67ec5ab22..3bc20698ec5b8d4ed72fa81c041f2cd7e3b1f598 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 a496bc677d6ecb85536d2f907cbbb39908493b1d..696d826f04522375e11c20fd6d8fe1be13bd106f 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 a42e33dc14ffcd27de2380ac925bc4c3421d0f6c..82063d4d765ef2df0026aa263a4595e3fc96deac 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 3383472ef9e1f56356d27583c5c09387e7f3c323..dfdbfb7a494ad93cf674a1431f55578dcee222ce 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 d5ae1a550c69468f89bcb3765bc2d60ac4aa79c0..bcbb336de82708e809973eeaa891843e1db32328 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 226974af6c4956bae85cf5dcae3ab2a6eea26152..a236e1cb0d293fa110213c21fc9b01db8b7b31e9 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 13211b9f24a57648bd0acfd5b922ff8d6f1f310b..92e9770b88d0873b079aab72918ba5872f429dd1 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 0849643a766527c931d7505c62e6a497d2525b3a..1a2e408c63d1b16ea6d50533bfcf9506e948d031 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 da6723463461f04d392da1768314e769e32e25c0..39acee66a534dbf27004ecfe75cfacb2ddd95f5e 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 5346fa796efa31d113f0fa79900066da95c2d691..3934cc36b8039a2c18077bb108112898da9e9785 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 0000000000000000000000000000000000000000..5ed8166379da4f9e818ad97715c5f4f147d969ce --- /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 a2f2bca81f261c6bc57f2f9a6096efd3e4064fb1..563a2c7eb81a0bd68e5ab35d04f1070e82909e6f 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 3029bbd30575f1542657ab7813d1b7d4a339c7f8..b0ea3bd47e9aedad33576bcc8787ecd592aa4f56 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 caef08320dd64eb4b61142f03c005932faf1f7d5..9c4ef21c3e041fd2cbec55952d6c204cfc646c9c 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 31c042d9e0a6b725b669da3c003298708963d690..d4748072e0abcc97f53a88778947cdfe400ddc21 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 2c7a9aad5ab21b24264b21f2eacde78a8eb56b0d..982ace3b6600efa250be2db8cff9312c80612b3a 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 1a121fd923f33d05dd361a1decfe74b139d974a2..ca74a0ba5470dd7ff414a7d1f6cbfa5ed8a1ac68 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 a9e6d2d26bf365fe5640dcc9e6afad9131f2bd89..a9543e5d354aa4af678c196e9ca59fff8ec54bf0 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 aa568c235a05ff238d44dde93f3e925bc0048459..038bab35d577d1756048b5b71555665fe088a65c 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 84cbcafd88b9079b6bf35a26efff036c72f2bb37..8062389f0bf171b835fbce8f02d3f7f9407fa40b 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 9de907541b562d692c55c8affed5b8535b4831c7..6babe24ec222cd00aa70f9adc89883ea942a5126 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 ee00bb0747f5ecfd2bc1b333d2df3425eaf55191..a26cf1c860c315a4157f0cd23a071e43132d93ea 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 fd540d7e5018d397336c4355e90accfcf8fa75e4..7429f8713fe6282738e889095e5aac2437dac17d 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 50c115e3606e8612fca2a9c5504289169e1d4719..4ace4cbf8ca8f430d3b559bc4ea6c4ec0f38e7f7 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 0c37a6887790779d55c8ea01c5af4e2117e175e8..ec18e67cfd2eba9bbca0e5cb651d2d75f143fa1d 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 91d20cbf4754972b41314ab85ca43c8b801ee7f7..cb1ef6e818cbf2aba6e6aab7e814c38f8cc2db56 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 16e73f2a3f5e2a456c90a17cae998cb3b51d715a..0ed8372abab8c00deba13de3af73d0f40984aa99 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 f4d0d20e8dae0ad2b3a111343ed5cdc0050a67c5..6f5a2027ceaa8233d1c4e109d6c32b251c777170 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 0000000000000000000000000000000000000000..ef000ddab7259b2aa8506a328679a0b9ba9b90af --- /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 f8553dd54c1535e714f6c266329026587a496278..d7080173c8741cb0dabdf8d68a89b2ebe8a09c66 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 167ab6a57447013cbd9c7bcec6397f85cc052730..1dde4da375790bff7fb6a2c0bad393bc2cc46908 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 1b6cb15cd549ef068e3b0c3a06c4e098dce435da..05f57ff873d4fcb292a11c07d5e38bbbdeced769 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 6d3981e4c71a10e6cfa6cecbd9bc68ad41e7e961..ce681e470f4b1ff41306952344a07c804ea3d327 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 6ad25b9d0d36146ce21f473beb18dc3634b51891..55026f316fc96a983feb1e886ad419ad5f85094f 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 8ca38dcb9c61847cb36435057edb8f02eae40d66..b0286e9c49cb7971edf6d35f78fa2bec446c5c73 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 56b5c82423c894494168647b17a5097b8e4474f1..dcda009bc60cb86d39e984375b798e1c6da9de4e 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 6982e2a0814f3b3769c0a539b2979fc54ac2c255..ee40d4e7404c51a7c9fef3962fb78a61bdc70004 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 6c2cc7aae07ebf3dc774f10e4f31816186f6e823..6699787991f183220152e32bcb0ef484ade24111 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 07cbc9b26ec4385ee9e3fd41ded73f01db24b29f..d43329daf46772429e305e702e8496471fda3b02 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 fff48b145266880941971fef42626e9c7af511fe..c0c56f123533f47903d4502ef7b81399ae40eb8b 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 72d817a97a527578077236546be257c218190a48..bd398ba2888c8fc4090b706f7e1b6dd2fc4fddb4 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 bc9cccb71206a724c15d8ccbf73f2aafa44a6890..213266781cdef368cdc6915c6ae21b25935ff45c 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 1361bf42ad1f93cc9c8c3b243edfe9e66a2a297a..47f5159771fe3ab0a26dc40d93ae79a696b16e62 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 11f23bfdf496dfb7d0452e8f5b315b96a6bcfcb0..8a79be02e6da74eb3e21dcccfd008ea50dd19cca 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 f7f3157bf0242aa1e37ade457fecdf6172f7755e..1a401d2d523fe0e4871997fe527c703980818caa 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 293af33b775affe3e373ee2899fdfb9adb7f6890..38069ea93258f09df94957a69391cb853874251b 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 0011198e9d08b77798f5bfda88839a1d3caabf4c..7c262473b1b629a038388105df8be4a86c131094 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 bdfe6e8e55cf64890a29095271a663153ed220f7..61f202950fb752fcb4e2a997848587a364c4bc38 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 7e8210e71bccf8593e6da6c066062bbd6c36ff30..142f482b5bcd5170525b6ae6aa9bfd9910477247 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 05052fde790cdcc8968d4b512f4f511398395a39..e2b98e1afc122bc11dd4b4d283b9b74ffa2f1ee3 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 b9ff919e8f5cfc77c1d2b9310deda53998a209f1..49a401d17cec2867bdb05c48a578c975e07bd18c 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 b5bf4c2396f59380f6e852d13ba1de672442cdc2..7adbba2af7cde38ebefbaf1b1fece1796bf9663a 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 11a7a473f30b0445316131c1f46bbb0fe52c1f24..4a683a9138e2052c2888a97991994c43a3d4a6da 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 8557734e19f4e01ad3f061cbdd4097194239651d..218e9d903d18d67c69890cc89be4e5bd0b7472ab 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 ff30f1a562567b2bb26b2cf07b13934237dc7c62..a447f4c48b3fec4ef3707c0c7bb77124428e469d 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 0e27509de5e5f6fbc76e0a90d030ebd540b4e23e..3cda6d6ce9c8015cdc6ebd34167979db44332898 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 0b76cef049aa670078ff62fdfc42fc47c3c0afc2..c054a5ed6ac9f261999636b2662f870853920080 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 04ab7bf4fda2ed60ca1f3895c219565114ddd57e..f21072793ad27e4ea535d1e22dd2ffd83b6cb06d 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 34007fee0b75fc8b2036be9a62ea559358e2aadb..049def54fa46d72377563bb5e2288baf2d97237a 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 c7590ce95d587dfbf8e60568cf121ccfecc519fc..3058446cce498634312f2028de7feec00899cdcb 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 85f211ac68009314b5fa15eb4cc576fbd637e5c9..3f80086dccc13267ac3032d7a43a79aecfc42554 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 c7fd2c1cee811e7cf3f8fba3f7b7cc2b8e7e251a..195287f6625c614e233656cd9ecdc44c4639f311 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 dc488596cec07641a0f858c24eb1e3ddd5710e64..a2428be3decec5a51238d16bb24e2e78abebd405 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 92a95fdab869bed2af15d115d376b1cb03e37bdc..1061b880850d267ad82c2f16fd19e55c1b0f4d2b 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 fd6363ae8c10b1cd94831b9ff18b3a64d65c1e07..544637a7e90e06b1f0b7232de76a2f41ae2f7eda 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 9fcf3fe9a7a150c4818f58848b3e7c32ff2a4daf..c875c6a394b6069b4073c52eaf3fbae062f6310b 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 d6587da0f474086478d42dbd2721191c293a4a20..58bf7a41e14e8b93b7929bd0154c74a5ccb07115 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 99f26195c4ace3c366d9b832889c699bba3ee4ed..82576085feec0c443a5f88af43ba9c9ed75fe5df 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 4a5bd3cab348efc1b2a64145ceff9c88e818d3d2..b97af89344539801fac76e3c1debbad9915dfde9 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 36cea42086e54c02a4f8668c7829dcf020bd6670..cd1e90341ebf22b0a43db161a1a877383b8a1986 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 d49f16fe29630d3bfd418db0e0ef471e26ca18e8..6630cc8a8c89fc334caa3b58cd6ad8de06fee720 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 8062172a5f51fccdc026053a5ce81b47a7486133..c1499e0354662ad6273733c7de3a40dca6a8b883 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 3ca22b14e923a6b4f082e6bb00fd718c14ce8c36..581190ed405c0ad97f68de58a08d48106b589492 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 79e16d013824627219a4f71fcd24faeaf29dc671..be2a281202713a64e43298599350b9838ef2752a 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 b1157ae5ce76e459294c1975f2c505c7f04628b7..2a83e460199e2bb6b0d2f7cef2d9d5482539428d 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 ebc1477b15840b4df4c74ae9ce33e7c715aaad9f..eb04f466680a4ddc75c7ffa354d066e2d1202490 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 d87f3e523321dc796e5be584eb649ce27db3bbd7..0def6f2a2c23fad1ccf64de76a8dc3e022b10cbb 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 a96af9000c6ea9b9044be06578805f936c1438df..50ff7173d0e2c97e0445566d82a0d5c536d85bb1 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 24b075565f35d166d219ae8ebaf0b0a00c8ce2e6..c0dead4182f3407049cef8ea27d153e8b1ee7145 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 84f42db072d22c665f2fa0683aec5c1ae1ee2544..837c611fa917125dd201884299951c47f7cde183 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 6b8143110c9e5512936faf75545b4a6beea8a55b..5c23fc833190dc89a0dec6f5e0fe7b164a845777 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 9bb09a3d67291d785224703995c8f085c2b80266..dd464fb062878a05666a0b423ddbfdf854037c03 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 12e808aa4d979a79201887dac54851fa28ebf7de..cb3a975f0a356e17b4bb327721f2d7a510b86805 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 d586bbfa3ad7b95f55061cd1aab57a008f5176a6..bf44c1b91d9be788e1e940f742111e4b84a04930 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 b305d1b85cbad86e2cefbf58ed535b2572ad272e..3187bcecfda4dc6c084a37ef0ffcbc4f450491fe 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 5781bbb7cb62a36378b8392eb2f5f5d49a9ef73d..c0cdde14875fcf22c7c937ab5fa57cc82df924b3 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 210fca67de94df28a5f622420c7d8abd6f8e8e99..8dd74801a805121ed2254c473a4c7b1fc57307e2 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 03e4f5e7e9e61b2abf446d8d549353d5b1902569..3893047ff6ac796485950ae42a703abf8f6a91fa 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 562a4727473115a3209974403157d6af39fde6b7..676cadc4d400dc88fbe9352302b3fbc7313a35d1 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 c57af3f0e481fb3b326b0e430518503c8f95dd80..488801faf159a0118714f820d4a2b3ce238bcd7e 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 3ba55829e238d467fd92eec3e388e7433d63a6a6..cf79bd236ded3f6ba77c7ec8827a82c327dc7b43 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 0f658a0a8e98dcaf90da228873ab34ceb03466ae..59325fdca019a4e05d1ff139870ae89ceecfabfd 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 68be53d3cde4e9a5359c5c1580be589f23d7dece..194bd642f5633e53a6b8cc1017c847b76f703fa9 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 f67041e570f864e23c32d5fb0ab637c4ecf53b56..97ea347b5ad332f454a2aad62fda260eeada3b6c 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 b1ee980fa51b31b9b323196e598d912730de2a75..b6a1068df66162db201eefc40ee0272c102891e8 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 c0f6114fd2a9b45d276a862ceba8d1a19f5cb038..2c4b9d2ce71a5fe04e3a1184b06396b7683d51a4 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 31f37e7881b79198429c5e75cc6ae06e585fc2b7..0f1e05755d7d866b193cd88934e507fa0aeb2f90 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 461ed679c01a176cc94a9715e5e05891cc85fb25..281ba072e8df3fc52e88efd512dbc4bda5b71e42 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 67103b5b2e9ff896f74d1f73395bf2c08ce033d1..abe9f6048ff7e1e7930a7e96f07fc0809a68189b 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 e3fdbdd796bad7156903c16babc3686a9c32b865..5b96fbcc35b479d31fb00c6a8e370a140bd32ca2 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 911fdcaf6e41691c12a8738322ec446d836cbcf6..33c85ce0835578a06808188e1c640fbb2af1e3f2 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 5ec59f93a1708095185d9b7eb443c809f92d40c9..a33dd6ddb118c00b697c40b55fb4df0ab6738e22 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 1795cfd3199ffbccf33db68c7ef25bad20417e5f..4f5553285313b8a5d72fe7a24c3e24f143a49376 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 b7bdce50dcb6f9b000a93078563de0794783688f..20cca25150b945a1f033f2cf055bce13f2efb1d8 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 dfb2832b593935657b4dcbc4ba6a2fc51e28c9b3..9f49bb2c5a3b395f15af1f076c50106fa5f63ea4 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 9fac83df90d6a9429929a5c8a5349d343137688e..d9fcf4d7f8ebade2363248678672e3d8642ebadf 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 0000000000000000000000000000000000000000..0922f4f203ce13c925b423c12985b322787c3522 --- /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 0000000000000000000000000000000000000000..428ca54bec1c1a05ef66037aa31823db1e5e98df --- /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 0000000000000000000000000000000000000000..5515423027dbc0114674e167523a06bc95c10674 --- /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 0000000000000000000000000000000000000000..93eb2dc699d6df05bd7076024961a7d4ba11e3a8 --- /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 0000000000000000000000000000000000000000..1c5b66a1c7882bc1161d77636b9b1f5c1b4c6e1e --- /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 61b6f95aa85372b7396768ab5101bee91fc36205..21af0b68ff02210f4c2b00a3e5cced854b06c7ea 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 8cd458b9cd11681fa6070c92ecd42a811b1719d2..9e8bda2db57f54c4480073e58289f47c976b9fbc 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 d47f06bfec49fbee97e5967b5381919399db3acc..a047f4659036c163090526d653d12ad79388ac67 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 b2dc314ca35f7e76468c79fd15f5f8007d825507..ccb634774b4a54166ee7a43aac72f1048cb71183 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 9c7fb715ab46089f68fea9059906c17b108e2097..8ad19141500a85af4edf4fd724200a46670d66f7 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 656879928965ac58391cc3b9990fe110459c5861..fae231dd9c00dce7d5b7cc2c7c41dc54fe4a6446 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 f524687cfbada56a681e6f7c0f919c0da2746d76..89a8622fde6f9cff542dffe4b36da0eeea317606 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 38c5b030e6df213ab6a7f47aa71fb5fbfa64ef65..0abf78f228bc912b76d3dee80c1e7c234a6c8757 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 ed763c1e24541cabdeaedff32eb593581bc5a3d2..c9bd41c22474bf6e4d3f1ecaaa5449885333688b 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 740e21f328aedd9017526cdb6e072f3076e0f58e..7302cad2a988c47b965e6b2c3444fe16680ced68 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 1154360bce54f7486d627fe7bf1e014405b09b7a..7f9a1d24eff56a2ed5a76c257515368dcdba5b0a 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 f41adeaccaf7a7e38a28baa08f858cafa3810533..6dc19796f5d3ea985f9e4ad4ff950a5b2170d82f 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 394ab6a90d21e7a1d7501f6a664937e9e24fdd11..8e1d69474ebed605220ceee659321e758a11b3b7 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 ed083bd874ccb95b6547d409a8bd7e87b4910cd3..0a736f388c21c4b91db6ecaf2117714d500ba3da 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 e450fa326dcea1d25124bb7a085fa3b059e67ba5..9208afa6c77258a777e205a9fa454ad5750344b0 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 d2ad8b9a559aba5f2c416f4e41faca739f3a84e6..522a144c358303f3c5f1547c5c86b11ba00413c3 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 76bf9c1dc09ce80b282499a5c0ebb84a3d127366..86b334efd13216204d5db60e6f75e8559e349c59 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 753ffb6b8eedda0933986be95ed0e758e25374ba..7c3b09b5c5983ecdb3cb2f9eb04763ae4257a848 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 e0a18c7377322377147b8ef750d6a9e5bd5f19fe..939a45b21ab3c6c1c951a749d58eef95e5cd847e 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 bff206c1bc33f1ed0ff540ec3cb4fac0ef2fd355..85aa31adfd56a6a3733c84fa8b07a049e8b1fbde 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 053c20cf9024ef7b058b9a0ab95925ded9a8dd60..3c3474d79faad29af764b46334ba9ec12fd34d6b 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 b29b26d17fb38a18968ffd8c18cbf08aab04098d..a1ba7bb2c90cc8aa069079d7b1c032d8dad95384 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 58236c80e1a445f5a59ff71a1f00dde29a654000..749db11094128d3cc599888c6dc6941f24b42dc8 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 3b9e65f40a43f9e9fb5b4d8627735af0b4d617ad..9d97a94374e0b15e6273ae1fb0ed82678e2862d2 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 889695dc42d9a50d955bcb9fc3048cb8be62a46f..ec3cb9420412ce0c3d4916fb02c93545a07e3b69 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 f17f821f856b201fd9add0d4199c2432c3df5a95..416e15128228c4fe85c349060a150e81fa784197 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 5ccea4ace7bb7f296c67cd57446ec2a7d584852d..d2998fedd0d4fd74083d5c6e0bf1857f9f78a651 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 6843739db8da7de507141e4fb0e5ce2e0972301e..54ec91cefbb27dcd9c86ccea8cb2ba77eb8ee3dc 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 3572016e467b949f794dc4294688fdc6a56556d3..8c5a603e3022019a6e77a351d4924a29d0396747 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 f86ae14e4c6d69a2fd731f8b296231aaddebf1f6..1831277cbcfdfd33253b8c836d42b507c643531e 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 ed7181a8efabe96450e2d8965fa04afc910974a8..f097658d2bd2d5e393cd303d46498ea82d2076ee 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 af68099328ff5acf38a661d78e43e8c5066be836..c1e81966a6bf1ad859c77df3c50fb8a1f3ded46b 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 b35b07d7256418b9542f39ed7e0f1e8c93991b95..a965a17c35f02d857c5b5afca36bebb319aaab67 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 9c3c6004c3bbb600edebbfb5f6574ae340bfd150..53aceb989c2060ea4c4827a068ea2f5965e70033 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 b899a61bffb5f87f28767ffe30b52c4fac85ba5a..d2555e9fbc4b8bf9d44576543380cc386821c34e 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 8c506c8e819a1bf6156c013b341a8e1db0ae3c97..a4f7e4192a47519f786babfefc58ec00a8f2ed58 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 02dc0a49875dc131deb93461dcf643128bfaa9db..b24ba94166cda77da17aa93d44c082b4a541852f 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 a6f1c77868d42a748680cdd90e2c5f75ed682fc8..65644843a82bab88914e4963448345501050a3b2 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 6c0d725b0d6366b1d6dfc2b1db4770643cfb345c..ed0b909a8e2c47d23154e51e4371945bdf125588 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 c6c9e5382d6aab3faac492e92469583b626d1396..3f7dff26800dd3e9d5d76e1de4684a9365dc2e43 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 f53c0ed077eebc9aaf3fc797d9547d7ac3afb227..37b20212dd227ed45cdb97ca0c596eba328c912b 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 58ef470cfa93a63114d0de4850d1bfc438decb22..132393405783331adc8b9d1352c7e5f1cd1db61c 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 7775d63c14ea2063f94431ca43d8195c28ac9639..09ecc5729b409546c658538e4669cb167b5447c5 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 fd2f6ba7156765193ca3b79caee0bc11a041c34e..99f462495873ef7078fcca94d3f10ce09c4451f4 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 4cfa518540fba359a10976d8e376b0dcb4804365..bd799a60630ff8d60453fddd8d70d598ff004730 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 0a2ad18cd84d692a9f9b2a18cae17b0548557139..5fd2ea705dd24400dfb91e9878d9ff614da61523 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 0000000000000000000000000000000000000000..b901ca7c5177fbcd3cba68330318ea02d8fcca13 --- /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 0000000000000000000000000000000000000000..5f9e75130b31bbc3fc9f07754a18fe6799202f10 --- /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 0000000000000000000000000000000000000000..cecb2ad4be7f0ee0480783f5ac50102a15ad94a3 --- /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 0000000000000000000000000000000000000000..67a09f745de3ac076490376cb103d99d669fad51 --- /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 0000000000000000000000000000000000000000..df07efcbe41385d013c7452944ea2e83380611a8 --- /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 0000000000000000000000000000000000000000..6e951011ba4f9075c6f8dc4ed65b05b3232c1df5 --- /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 6817b636155d66192b3228876b9c55bc877987bb..9d1a33722b03dc4ba930c78b9f4ec6ecbccad353 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 7d00f1a91bfadfceade90cdb07a76dce8e8c4562..b704c04cf41fe565a8f953a0536bf8dc9c12316a 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 4079720818375b09b459a9dcd0563a754dc3af2d..4f88344b101b69d1fbbf9eb0f904614478a805a4 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 3509ade8563bf338b6e02ea93cd1ddf2f84f028b..72b543935284f29465a72660ff041042d11889be 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 19fa57bc1fe79581020b51197a75a96211bf7d46..bae094f01519cc5fb0a3b74dda409b291c7a8ba1 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 daa767b345ca76eb1145269d5d38bb5359f698d1..4d33f0213dc89da319664e650d674af1085d659c 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 c87b438c382fae0fa79c2ad0c05c854ec41af553..c01f0f8049c78362dd24bf9487ff464289d99bc1 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 c1b5506508ff1345c28e0d0c4184fb38faf4b2cb..c31cba7e479b39d9dcd865a236ce87cbf11f10ee 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 08adb8226342cd90ffa480dd3f44541656790882..42aff39d4e17b4fb040f2c74e3af6077d330fed4 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 9ed27b65fdaa12013facfe034d4fa73ee232ba9a..5e3567c20c84c708af6f0d6420cf294b09607005 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 0638d54ed8e17c1b1fec772b306391b65731662c..03d1ef572e4d059a2edf49c39508f39091821491 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 44c0f6503988516cd18a7e8139bc92102056bd9e..725048334e945ebe5b6ee11c892772c1da6df9e5 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 12b2e54e42c38c4c51da3e015955aac31977912c..5e84446b5e183d66bd1b69f39899e85f47a4df3d 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 f55f2adbdb4950f21ff67fa482351d5aa605dcd4..d6dcfa79476e3b6cc4896e4dac15263b9d57d012 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 0bc5e65762e758c95c34a09f13c687a015a7358f..66dd84df19eb23e4bcc15b18f6d3a25f311f59ce 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 ec798d1132e8c3bcfb530befb60d9beb9fb048b7..eb8d7a69226d94648cc5cae6eb04e73d1c58a03a 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 a67b188714da8cc6178a135fdea5da277ee5e158..5171b9a9f0fb98e2457845811f98833c1a323977 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 5b0bf9edd5b6957a6a8f256d5fa6d93ce8b725db..ab5edca6f8c47f48c6c60fed329efa9cf43d2ec1 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 4a20d2276098c74640c0d2fab356ba80630d33db..47e04dee5d56bc0580dc0a56943bd13d222337c0 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 3bc7ca2dac297effbdc5025d2c2d7baa259552cf..904a9bbc1b9aa9659afce9a5c30062b15446ead9 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 225b7cb6870cd07cdc7868047382c15ad7681477..aa9e524ef3c9765fdae1a88b98978243e0257b88 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 a5027b1650b8777ed4a8c8aa4a1c1453cb851a14..68df125495f58ff1796a39ee34946c4d8d9fa751 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 bf82fc88e5b9c24556d4b91f82765a7f87dc3228..16176a8b902cad793850fd750829b8a470767e7c 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 23c571552d9afbcdb06e3923b00715e0741cd842..e534a73d2de1e1d7c2de5f24cca4496f3543eac7 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 71a585576e1ad426d4819c711e57ca0de383bee0..4af3936bd8eee6e85a8493f13bcb5661dbe512c7 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 c1ebd21e24b445dcd72ed46660eace33ad96e2a0..bbdfc3ee5c66ccf42c48142156e02d254ac2a2af 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 de418d797aad99c25c2f09135ad26e864f7e0227..b624779672acf84f148c9bfb579e74235c5dd0de 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 6049f6472ebfa69883291e556ed0bcc0ff72a216..bb77d2f08fd4c1cc35f41ecb380139b4fc832d2a 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 3be2c46b9f327d7039f45e80020bfd8e66834bef..2e088dd814d3a8d7bce0dcc068ffa531f1377711 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 14979a5b70364dce2868e46dd30641e584eac475..1025efe7d3e440012f71a4db233ceeb7d2d1589a 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 bfb51391364dae84196a67da34406007cc4682c8..4832cd5b1e89ddac41b07ff76e4568d2444e480a 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 1c410c9de89133774ae79ccf4ed48721bb62a29c..4ff2c572df99b67178c523cbe66af145a18fb100 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 e137bf2eadb5a1e71b81524db332e927a2ea6a11..4a0ea857f7a0fd1e4b060f5bd1dd128a192f1f39 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 450df5d7d5c7add4fb9a1e87c0085d6bd02299ea..eb94f13bcba2526f526d8596ab94668ecba9bd45 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 bfd3e6a217f27fc391dfb6fca5ef66584694e9bf..e3e386d0b48a31f040b37f56db20de02ee2fe1ee 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 0000000000000000000000000000000000000000..041ae1be12fe535f7681e6866a107a74cdd75c4d --- /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 0000000000000000000000000000000000000000..f3e897347534a4395ffb498384aaa4355167c944 --- /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 563d61e2af8a9a56efc69c2b1a395a44a0fd7342..cd20c924c1bdcb9968f0a88d6595ed024b718ce1 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 367ed52ef4a654ceca088a49e5737316c0efe6b4..e332a4710244ddf2f63fb0ef09256b53e8bbb415 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 53337eb92fd8bacffc64243205be51f5529b7a1f..f98081953c046e21cd35b6ffdf94e1b4b9bfc11d 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 0d41c7e1d28c493823ea91cc4f491cb26231d4b9..7290607d8959f99d2b43fa4120b11ff94c17e731 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 5256db2e6f03b984e8acab0339c388a03451e5f0..6e61cb77128d8cb2f28dee9571790ab4446ffd77 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 9dc7154e22245f80bd064690ed6ecfa01cacc94d..3fbcea41afa88861612499d52aac6f00278560eb 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 167ab686ddfd8e0715361cd64c3929aa023d8cde..19733cd9b5251c94761f3a98b47170dc1dbbec8b 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 73805f594d8450b4da9a35123020f32e66aa0f10..2afa8bedd22497ecbfaf4f0ab905eb203a5debae 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 a7442b122d7bf3d783daaf00f00dee0f00161ea4..ecef5d065634b450fbf76c197c3aa2ecd75c8b0c 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 afa13b1c35745d0d21d61eccb0858af4116cc784..3b8beccf934fb946b7b62227bcabbfaedb873a59 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 5fdc1594bca22f2ff820c8f0082b38bfe995b175..76ba87f7c9171d001af9a62e3ddc76d5bd7f99b8 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 96d2ebd5638ecea6c5ebb5d62facc4a7cfc2db18..0c835d416987d3b61b794a2b685b6fae3204ec2c 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 60f3dccb014c835478d708a2fceeb1febf9b6617..62ea848d93d89e785ee9bd230fa0115b8ff3290a 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 51584de6378a5558cbcfd6875bc4f8ba9ced501b..816cda47f812ca873962d14a313cf7e6dd9957ce 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 efdf2f7ca6e4bbd291f6bc7f0c8c8868ec30bcd1..03d5bd1a72f5273333fa2120869d1ae84144a4e9 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 9333384ba78a7a6d68456415c5d4485ba6e99bb5..3b71332cf36f7b87066a247cc3115e449a13e2fb 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 d79b5117e2fed239fcf7dc12afa6212d8700ae4b..4887a45bb947748f694ffbcff3448b19ef54e908 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 db7544fbebc84c293fd2c7d2d93c92ccd5d1d894..5b5e3be49f93739339ba3dc8a76a6a2a2598a700 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 4bfd9e68b61200977f40a945289f7d764ec3ff63..86652b320a4cff9162d0904bf6e8a66e4cb2a6de 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 24eae72782b442dba152a8b129a20fdb4bae47b0..cc65ecae5771ae5c2dcc520d821c9fbc2ebac83a 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 1981f28f876dc6daba706eddf90a82fb9fdc6b81..fc6afe18eac88733f62f1bb1828c7ae250ac935f 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 b804fdac2a26574d02c1f9fad3d4717aa2b15f17..f5842496910eec989385e53ce3c622485d01d093 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 92a7e6c04cc55e337dd84ea4c1c818fc92caa05d..7cbdcdce0208838100c35e19d9a1fb07d15cffc0 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 04d7243f3c791dedccff098ad8246685419ea7c7..e032da6d0f9ddf367aa5d5f54564ebbe087cbc02 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 4623de47fea888813350b0361687a7c595deed48..f0662bf8c5e4461ccc09d040992e70efcc5d003a 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 6fa67d27d92c309880667caa07b4ff261ff07cf7..1f5772ab2cfa1f019c9dbb0c6350dad5365a594f 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 58207f156d27d0eb9559b7959547df95c76ce56a..cafd10c1286e16355c4bd76e723ddb71a67f6d5d 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 ec97ac7bb190f803eeece7c2e6103fd65d29cab0..acca7a5e5086cd84974ae71ca9c5c42329d93bdf 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 0a45146342dda8fbd54511db5f42d452a1b30e36..13951bf3e66c8376e599f8de5973a17e6941a791 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 c0058371f4abc6f1cb1390b9660846b80f629d6b..4f77738f54a00b06314848cdf250ec10fe280469 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 b050e5b8865d850bfb428f55ee7a0321d6a9a48b..311b9f4d227e25314e1e5f8fc78a7090363ade97 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 846f44e6d47448f8a72c7667822626f98f572c81..4d389047d39776e7487a029bb18bbf3507424b69 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 134cc115a30fd5a767c3b46465a0ac19ad86b517..c21b335d7be32fd6efb16fb7d750af1b6e120141 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 a65d99b3285461ca3496d2ac605496579c56efbc..4a469f20d18dcdf022d8b655c5aeefd8ff84d256 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 fa0e271941c60b736bbb11d14684d1177562ec6b..e9a6985c08aa155c84648225e2ef69889a3197f5 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 132e24b6ebc695c75a6524d741c33073ef7ae4b1..12db8fdd93a50b23274b69fa8fe3b81250426fb1 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 9949f98c59da1c66aa8ae8e16f3aecaa81623373..42a01a51f1ae0f5c2fb67d8c4a2d0db22ffc40e4 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 0887018118ce510f5bc78e2dbc9c46e57ea81524..0db8415948588a7e0582c0fc98bfcd2e928b5108 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 73f157c53b236875b47e808e3053b0cab601395d..889c2c4f3329e17e540d6c67fd88ca320714bee6 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 80f1d508b36869f7fa2bb42dcba67cac88bfa7f0..da340a34169b0bfbe017c736143afb3567b7ca5c 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 75aa4b7c5b8c891b00dd3780e07f7d0221a197d2..8ad0cd7fd6e629c5bf2402d7f091f0992a4f6bca 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 4ccc573f2b5fb049061e10d186c702326689dec2..70ce7f84148ef285785511c7888418153738f245 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 b436a155b99e4939eb91dedc1fa9e9486f0f7b81..15a493c9df6eb6c3a3a900a7ae4326f91841e07d 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 8a1580335c723df4ad6cfd32cce6e7f798dd2c3c..b21b2d7e5771c3a87d49ca9ff402eacb0c9d7090 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 01ff935e2314f445f154a97154335130bc60a603..362495be621c33411228631891b325c3389a0fab 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 8c100505af638fc33e459954429e72f1022b68f9..52198b508aad25047c0c14e47dc2ad09d3551ee7 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 2edf29b7b51d0e8fcd3bc858b9cc0cc8a0c6279e..bf7acfed7f05548a4b2ca75bb3a598a3ab5cdce7 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 4a0104086a00389c99498c510a1f376ba2333d39..c954d90289ea8fdeb8c67ca44083fad34c51cfca 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 4f874847aa8f37bcbcfdd8a62e331325586b6044..e0d322fffc1c955f0e82d6f4fb5e11421e8a61d2 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 74c8a9dbdd1c40d366731830a188e4fabccd185a..d2980ebbf51eebb20defc6f93c0227047d1b0f44 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 1a0859d03b071a5747a00bd94477f844e724d036..8ce9ee60065d7c42e859df25e85805905c83d2d7 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 4fd32e043121c0e169de65067671731a14ce3648..adf4232770cbc60a805f0e2debb400eeacab33bd 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 3a35b0693218d00381b788b0e79cd8772bc3451a..7131922494299fc4ae251ab5b8bb5d256c6ffa1c 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 c1380d4c5754bd01703269e103c55944021b8ea3..eec58ce5d95bd221d3831b4d55de474e7cd21afd 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 0000000000000000000000000000000000000000..82eef2b2783fbd3f833d7ce7308c93946f39eee3 --- /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 dfe84cf089b06f7c8e05fefe644c0d1749cb825f..cb2245f01aebe8e8e2cbb87203e4351d512c54d3 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 a3cf50053eda073138648d1b54dc4d4c3558d2ec..9e6a50d586b92e21ba0cfa052f2957a09c5de2a6 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 75586954ccf0c2c0fe3816a347ba7bbb1def371e..800fff3151af42c25de2f9f5446653875d4908ed 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 a3ddfb6a6f2c8935da6c9b1f6b5a352095f29d58..f7419b1592d6ab917a5b95b31d831917760a914a 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 4dd5049d15059a46b0524f00de996e64951e9eb4..88ce8e3381b354b23b765c5835bd6617062c2eca 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 324dafc1418165c7a1f71c7d592d12c1de0f914b..a22483a3835fec47837d1349517b3788bd2de258 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 85df4bbe7985541bdb45ae4e1d944947517ff1ef..3c8003d7cb20220c22caceedee9b7cfaf66d8bb7 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 4665b8387c1a6ff20ef0fc47fd2b8787b5ec9660..9febfe366eedadf525a1c3125a76dee37f8a9462 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 c8cbc64afca13ee437277b1ff7517715a2e9b041..2ed9c8e4e575cbd9e21f44edef868046ac948393 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 fd6958d66585e16142ae153ebce5ed2bf071689b..441c547f166acec0efe288cfa2eba25e00be06c8 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 69d28f3c99f4bad558a9c86039232d3942271e3f..39db6845a32f8fabc8de240f5454de651ae99035 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 96e88fa8e1320fdc5a6f1c215c32837b276c3ee2..9d47b55e07eb0e1741eafee0c0b6428a2c3609a3 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 a661b4199b650f32dccce481b243f645074acd65..9bd82a1280f9bdc095f987850abca1309c6b7aec 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 47f7308cdec00d89864fd8300b9fd2b7164b50f0..280781d1000ea4aeffb535c1e20e1788c7281015 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 7beafea0543dd57a2279224d5f64c0dfdb8ffb08..422a79bcbbb97fbc6bede8bd1e9a1be294e209da 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 89905dfbff18a60cc227ff5309e25055f524e654..297ed2b84cebc0aecd870e018ec7f01aaa638555 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 3a9afa0a33e42bdd25d95e87abca440bc3b48463..d9109fbb4395f8cad5122a2fbce9bc181e8af26a 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 7aeeb1f7e312c05bc92c19050d368747e1ad8605..2938da6797fefef3d6007234725aa74c394a6262 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 4d22d07d432756e7dfc6ccf019637f83a12f1517..9d7b35532788fc6eeeefed132a8f34a192990c1b 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 9cdabacf90ae4ea95b98f769a086671ab85b5d01..c7558ca955fcadd00b986820a622800ce9924070 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 e9eae9369c89eda7c7645772cad8a84d9a6ac587..1a1cd1c360abcb90b564e4790b4df8042698b14f 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 064793b5166bf42d5a95902efebc5d82972e3c58..4bbb1681baa3d48b926e137532ea3bfbd03e2247 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 605a9ef5b01b02aff461413cd97425270f59d78a..57d748b6ed0e3c75441464fa75c0fb5c2b75d9c1 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 1964bd2193d127131d723b2997f8a9fb1fde6128..f4a9e63539588aaf955da5034cde8d9cea325a15 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 7ee1ac46149c1fb0ae1e94c86308877671973e5f..426fe6b34acb1b9d94b49e05e1f56017e67d165e 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 1f606e05c2b133e735b14e53a654622127385a8e..95295a540f44978b344ea813dd2190fd3018bec8 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 1ada30ffb734bb30ffeb1251e62280c9acd1d719..3d7827fc4574bd7ae4d45feeb18956882018f029 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 ce809fbf74402656611ddd7443ab0e3deb77645d..17a33b1fc07dc38c7f8942f4540b25ff3532786d 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 bc97eb3f0754a117bef95e0c07f66ec26fb41992..2177c73b671d996baf3643512862193539302f5a 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 ff38395a35c9a7b63c0367895fad2fbbd705fc81..362b401eeb2d2347c16d54fcc3cc910f8debc07d 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 58c54f68c7ea3abee9a6894c21032cf343dedb97..3e646ea47c83ca3766b5131f8880142a31c372a2 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 127d471be5e42dd9d68a955079add863aa7b8f26..91275de142ae584d09dae6cf60a51103c4a4134f 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 79027a51275021b833aea3de66b56e93446d0be3..2a9ae584da71a37ab7ab1486307de021ea7aeac2 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 0bc0205d2c32fbd1d53f0e152d17bade7fc458d9..0370b10dc1b034b7ecd9700e39c23e696cddc46c 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 77b2c01e57e98cb6c7156e0722494679af3a922b..f55749fdb2ecbc12101192468facdb1bf7928a9b 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 745678fe8a611a09f0cdc9ce3ffc231ad5dcbff1..ddbdf7aacaa14d8538c4b753c0113cdd83da3017 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 0a1038078960e355b143f26fc4bbf8d7656a5cc6..31ed76dfa711f3d623a0b0b10ebac0329da44d43 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 6d332d5563de0f85ee96b74a5c28ac6343d0d0e0..2cde7594b25502a0fa164bdaa681842df43ece99 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 230cee38f27418eca6318c0205c6e1dfc85067e8..bb484107138192b323eb695e5c2cddea5dfdf2c6 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 79706f14eb472eb0ea3cc70e64e9ddc0aca10744..2acad9e1b228bb8d5acce21d541ce506aac01882 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 79c10688f89e081c9d742a985cef7c0a7060ef37..b6a5c941c8e625f4489b4178247182d4de6480db 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 ad7efbef26a40831da1d5f5265700f209a51845a..6b1e5be3e283f33c48cac6b583def3aa2ba76bb5 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 4a792a4f4164d5be9433f012072704876cbd71f4..b34ee37b75e0ef091e0bf5ce6854489f31693df4 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 f7c684a4a4471f41d352dea55f4db3087aa8d498..d72b58cb576ae0ef92a23725453fa5c205867ea2 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 ab08346fe3226a4f01abb0565a40ddb2559050d0..a139da8e8214231a80e13eaf01424c95fcbf268b 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 40ae7d8749f4252945ed09824e1484edb209a60a..eec2147b3d7648486316dd7fe32ba5c936cae788 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 eba197b10f5e00aa340dcf2a8a17b2117f9ffb32..062feb80436d7ba128b11320ef68381727486fb7 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 5e0da4fdec5859523727af43635c3012ab55c7f5..1b94e28b17e541e137236dfa2d0a31032b287ba7 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 baffa3a5285ee2b8136bff1769378eec9b5fec70..0c0f101ea317fa98bc8bdec75cd24b2311164f70 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 f0d083bdca6ed4db63aac302d080d1f841e7e4ed..8929c82ceff376ef85aa45a60a3f918ba4a01e1c 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 f4c162afe04a621e9735081588a0e149e3f9537f..278b1818d3af2ef7c1f715c13501424a8e0938a1 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 f2aa40fd35220b748a4d8289c9472b8c06a57d8c..bf310aee5539225420128f618572bbdc6bb42033 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 3ed1204a7db9d7bc0237cb0bdae26dd19f04c470..d91759ea7a92f99b598a7c105740ec568c8b2e4b 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 2226c73222315a9e5caaa444733640698b37a050..3ff2ba2d9fc9517f610e2d68de68b5862143275b 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 edf6e2891d9c91de1843c0c1f07f2727f43a17cb..2e7a63af553cdb605e518be69992f71d711e7ceb 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 6ae49f348e8e257c781976e28476af2ba7a51755..a3b66d8f13745d685796f15e02c5320dad44b726 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 23ce98bafb2c2f7777ce2e03acc41635a8385682..6230cd1aedc254421d5e28ccfd118a493730ed65 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 d2830ec1b817a1e6bbb3c65e8bc415a1af92cf2d..efe69a6d21ed0e5b482601da291acf8569d3d7ad 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 5e9ea1f3c17d7a6f8c008d9bd77c94f0b9a43938..9454239b630e23e870c7ce565b02969333aacd2f 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 23c547a9b65afb235331d6d1032a348784823174..068815cc2141fde21b5964f8197e477ec160a644 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 0be4f241c62a707f89cc5fe2dca6ba7db2492c3f..bc5c36d415adb859bc81db39637c64662a675131 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 85a0f0e6f4c99e770b930a4d0f3add080de8ab8c..26b563952efba6f857a832fcc6aab5a7a89ddc04 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 be24a731395da04e5f1bfd05a708d3042c6f37bc..df7334759622b8ddc4bb9b8008f144a79cd7f73e 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 d4aa93e60181f383e5c1de7eb6847285e3712b65..add18a7c447aab71908ba7503bf1fcc79b10f122 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 a7b6dafb6da7f4456cdae7082c2e28f19e1d43c4..84a0904113bb9b64f7de31ec98c88b0216f2bb51 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 0000000000000000000000000000000000000000..7d9668f8ef7573df6148fa1ea9bfcff21cc3a05e --- /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 1b9255ef8ff36c400626df6e9964df132683831c..bed47534eefc04f7d1e4c99a3a1da04b53c3d842 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 cc9f0b38ff1af77a586780c67b062da6833e5fc1..7f50c58d469f64454a5f488e1894f297e26c3697 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 d619625121d8094065a5c1de49d66eb40375b739..3a1d479c5029ef1a88869ff6946db70e1cb85af5 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 69e268e1b1563fac5693465dcd95a61307df4c6d..93e8123464b3708cd677ff7a49b24852dbdaa0ad 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 faaa2ac4711a27be8fdc374767b0ce05d88b068d..c79f57e373249bb6f9c9ddadac91017cf6c6f9f5 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 cd5076ffd63f740d3dcc8d588cb08de699e66641..4fff28869174729538695215d049084ae5165e3b 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 152e172e2535e1fe14d57d34b7de327a6731d030..6b9406c5becc1c81701f8142cdedc5a34393c3fe 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 ac353b23d5a855fb5fd2b25090ad65b7e7b07e2f..f91095ad148019f63c01d719b8d68691263fb34e 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 0ece6625cb5f5b322e37cde8688efb985e22302c..4a9e252e589ac50168207eae51c7e395d214f10b 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 fdcbb9129b6368d3d05c9529102efcdb2a062efc..35ea7965742ba98ef9037b54c91b850167df704b 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 b390d7771ae38a9f8698403bcefb02548334f76a..f1b9cd8a86ee38a1089668600536ae79238f4d2e 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 2ef90d54f74d5656d20fc9171f9fd923590fb965..2918261e30d39d509d217ffd615d58df454f2c37 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 367db69caf8e7c721b820b201ff47e22618a6586..b11e3111730f97d701ef3d0eb755864f6837a3b7 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 698bf7aeaaf9f09be433e6e276b0ece2b8bf75a7..44c95b5294c5758c076f1da1544007e3bc4509e6 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 0a9db5076e9b218bdfd8832b33122fef14f59c1b..4fe59ee471bc1a97ec3e9ebc9e18b32abb1a5569 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 ece49ddbc4bf4f5df22febe30317d1be35111878..e607baea2518cda07393526c2209340c5f6276d7 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 7c46418535c747be93bcf1a54d353c6be600787f..ea5afaad4994b93c6d0e54945ef6f4e1aae17b77 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 fc563de139027acf131143a2aee8270d6aeb1a4e..d5088e753a4e17f899e51e5694fa416046b17ddd 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 556c84b7457635772de11b489f9b8f02753d1709..7e0241767a811e18f65e29d822f867d4021a9e71 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 79d7a62e0be153da06327de3108d305a90dc848d..e1c98d6a2595a759e66fb398e5466006aff017e8 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 16e07f0ad8c563f57f8de769746f04aa3a63c3f8..cfd4993bc810435f3443198c3e0088e6cd5f536a 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 d66106b96d662ff8d7580ba56fd23ff69d5cd577..fce4619030bbc6382bf877ea4f18a2fa3076a98a 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 1160c6f452e4cc0161746432ec6f30c9e19e9a1c..6e2a4f24e3c4048d03774ae113045369d67d32bb 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 f3545d89221ccbcb1dafc54be28b7caa17898aa3..0d8ef7a0cbf6b9c8e06e021ed9485a6082eb21b0 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 329d1db24d2103043107abcc70f3a42163d6ee3e..b8a7737223adea87d34b93674384234c8b14a0b3 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 a3fce8feacadc02c792db00149559fc3d0c0070d..b430ed3363a6488feb8f9d292ee907e51ade8416 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 1c9e36dae34a0893f0006d7de3e11d85e90f0ce8..ddf861cce1e695ea0bc3bf0898ea4aaa8936493f 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 2e78af178efe9abc2df1f750c4af89bd0285510c..d7b075b32ae0529cf00879a9d7fcc665355ee35c 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 e657e39da7d4c3cd17e19d69cfe3a5f4dd8c1c29..84d0a997203cff5c2f170707a039f72df592a03f 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 91fd1b6f8c002571e6628394c3985e873b66693c..7d8a3f2750fad302067c8c9a9a373348b947c613 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 93e9b275baeeefcb953e4fc908cf82cfd06e264c..832983b455f8b736e539c4adb96fdf8274257d58 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 94bb168f94cc927c10ce86afc6e0794795410ec4..e1d7b66c252b4cba04d0606d5412bf8ac00d4583 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 0690f40f1bba6f4cb0c8096cccd5388350471499..f7c06edc4e6dfbe3fd53ee67d7e4ffe95d2f9a2d 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 1a48f3255f317b374f777043797d8167d07b64cb..c921296738a0908f128b17b67be00b21fdab47d3 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 a220d70cddbab69d1ea7fadd45bd59904926d4b6..718090fe27243ebd86823360b40ee9cc28753e7e 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 ed8fc017613c3766e5e9f9c3d2101896af88fbbf..de6082f94e665ae742d2ce40623012b33061dac4 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 76dde7240ea50ae0b87a122f8a1473eb412a0b7a..967f72559e89c52a3da230aed8a7785552507fa8 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 20e1e2ab4feb9c530f3f0ee51dc53ad39095caed..c948df500cf1519fb7c4257b9f03161c985d9151 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 0aeb039f849892e7171a96c5dfe2a0afc0bdf5ed..fcd48d93104ea5a9a7219b8677ef5cbe3ba3738b 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 31e38776236c604908184938554a2c7b495f7bbe..0900195f856d8faaedff3e739540b9c440e2dcc9 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 0e08b62e14f72c27c1227beff6c86c15aaabd7e8..9cc1a52bb6257f3666ade11f5a9cc2cb0c8ade46 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 b6e785d6737b0d92c075de5426222c387cfe5f93..f68a2967a8c23096cc734244d4f344348c9a2f52 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 8e60636c35e30441a4a62ae4ec2c2927e2423a62..974eb81a51fea1df28dec65265968276206a8031 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 64d443351c625a3406f6c8ea36587a18bd61973b..99ecfd3944bd6361cf57703e800c741cf7a86354 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 3e4afe7bf9181385a24917510173b609dbf1fd14..7c0b9c1986505de2063b895d34cc4b454124ddce 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 9c5777f033a8e1b7b30cc2de662af9ea279cbee6..f10448af50178a117fcc40453d466ff3396858d5 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 79fa3b7f3561d2b6a8e8c0bede1cf67d0a3f0e7a..931ef39919220798faaa31f216348aa4f6bed0ea 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 e8995a10b18ae554f571ea76e455cde4486c3a36..a36057f0ce26497ebe8c418667dbb118d586e432 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 d405b57e97732f4cd9aa5a4c53fd86f4fecb40ab..c20c23d3475f5a6fe9eeafdadc8bd33a939cab6e 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 d0e055f1f7634988378f216df800f4a90b34f7e2..bbc2f83adde7fea902d29ef0cdb1dab90403b644 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 60badcfee7234a9bbc1f95d65a4d88ae98c61f20..9ab953ff7530e85ea418170cd0218ab5cc1c3345 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 d7c68d3c2823b52811cbc9804abe21dfccc12f56..6d8df525604c43dcece57134631386c6195e1a58 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 4045e2352965a8f7773a653b5cf0416370d2e1c0..542c8982fc68cd66ef8a16b9989b2b8dabddda1f 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 a6355d6641a58bac953a0822833fccf0f2fdd763..e82a38970b69bcc81747edccdc162f3d36eb4586 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 3ff046b9c7c327561dfd5ea0afd012c7dd96ae52..04c2c71cf6c15d2797202f91b34b325ad5f1eafe 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 73bb6e804a50cd24f3226c3c8dfe3132932e35b2..9bdccda83e5284c5fbb8501b03dda449c6db547e 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 a1d1ff604d858aee619dca4fc6a1e4cb4612db4d..d73ca78f9f40e6269288d006b6085727a0830eb6 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 e6f6cbd5df6bfa5d0ac3df6f5c5a662c7924a73f..f4ddc3e6a8d072b5b116756b0da946ff1973d0f8 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 022705543c70a71a2665330abd4abd143b752ebb..44feb61e390ccec88fa7704084e13a08bfdf5062 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 426fa3e695ce2f039864f68cff78be23d4399e51..accc3d8262668182a5052418655f54824687a80c 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 0000000000000000000000000000000000000000..a2d18b8317f68a7970fb6ce290b8e5103617d382 --- /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 4e7c069a0edfe81d5b08cd08bba586131a4a145f..68e29ca55f0475a4417ba93201c4d341cb0b1175 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 19078f3c8a589e2d4c78ebce5dcdbcb9a9f46baa..401847cd276345c5b39e30b02e8aa6153fb3376e 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 7a85b1bb99a1aa4af25d7ce567aef90096e49b69..b9e9d5542075920a7228ab5e697e34b714563f11 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 8dc2b6e34f34eeb8d2a86e66019b78c59275e219..8bf787bb6f94e6a5f226f26ebd756e8354f0b661 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 9134bb0746b357ef24253321173d45d3112f0e1d..e147f65c549ccc6bb06a14d36b06d7dbb6e6a7e3 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 61e69694a766bffb6e66cda7724a82c8603e3e53..71bd2dfc5c0afafddedd3351dd742214100157b8 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 6fe7413ed98205ee9366c7e2b0f0dc4b92b66557..886273dc8acf79b4870e314a20424d9f732c09bd 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 2fee3913220ac22ef6fc4ba58c10e213ec6a11db..986a94d211229b74f1922676053e117ef76939c6 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 09b99bb562b5d9405a8b984758623d4ad5dc5b09..9fc1f539d57132b93869d8292a155725fc9e924c 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 853f9d7612a84b13fb81b79047011066684e8ff3..719dbbd585b98ba99bd9d912fcea3ac3e308289e 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 0c3d2043dc86be4f1745c0c614d57d6758f9eb8e..e8ce3cd929221ad63f3fbf9375df5ab2b538eda0 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 6f570ec54d470dac684e79bec0a1a0e75305e579..426b4267badd3d7d757feee1d6b7051b330b17fb 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 80811e358a80e1ac4cb6f0c9d3cad44a343fb7e5..33bebbfb3cd8bba190b1f56c1a6045b3f320fd66 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 446376982f281d56088a49ec151fbb190005b298..9e6bd1c1ed21b3ade3b51fea0348e4d07f251446 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 9081e3b8e1b7d81e045df53752721869f8317dab..3eabf31a233a27a8d569c9c9aa51787bbb94e127 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 d4bde90c1fd7225612876317dda4daf4d27f6cc9..8c3fded8ff1021ba857889c14af466d72d63dba3 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 96e8e933a4711950101ebf9b8cc73431c17f971c..40100a064d8a748547bc1c37086ec859a5bbca49 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 0befd9b3a11a8783faf236207ae271125d8238e5..4f188b3f7a2874ecb69342f1b10c70e94c1349be 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 0aef733b8e388f290239512ca29db737cb8eb0f8..b91ccbf8d8de58c93324ddff0ebbebed25027ee4 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 4b8a8b731c63af72af902068dc0d43ecdc6c4b07..56f79b3105accaf1314b971c9428b65149775f5e 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 364bdc7124b059f4f62172e55ad5d674619c8382..7014631ebd2e07c03df435dbbe070e49bf2ecf22 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 1e65b0e9c43162cc83d13acead9f5f828b48c6ad..b4af7862df704fb92b4881fe4f5f3966d4ed5cb4 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 1cfdc9f8c9509a16c9b24d97701eeebf22cdad8c..15863d18d0abd3443eb03fd123359f351bbb8751 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 10a6df075f08aa35ac452a3216737af4c4de1822..9fc18d958a98fb8b5f666deafde9a587d3e1f511 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 aa0bd91362d9d6d56477bf89dbec4fb9345580ac..aacb35b26f6537bd6c55eb804a100a8a21b243d9 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 88ef9476785429a822b52142691050ce3aee062e..ec8dbd418255f3067756b7d8c03963f4c03cbc53 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 fa948a4615ac9cbbe8be4786577733e972bf1ad8..3c6482e83026766a6d21a88009843bbb1f5bc55b 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 560d1d92bfb7758aa1885dd736ce4f43dd59d59b..c47f5d560b969917cd31e59f525bd9cbad5dfa8f 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 62951e2672195bec28afcfc09ab5ed3027a2706f..9ce027ebcdf282a3c774b8063ba8b93423624c8b 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 bb3ac53c9f338ef67058486e80f80da48e7fd21d..d945b54b102b964cac900b9207e26e9c0de24855 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 fc1abbb8e169037878f2cbe00b1be23b9ca81bdd..10704fb81a23efe38f569e52ec55aa6cf86b9e53 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 ede255be381c9863c05eec3faf29aba06c2ac238..649e34c89e28dd176132fbdc1a9a26f0069ec413 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 379292347edacc67e4aed25a9d0a56157f18c54c..06919cff08f8a0d083e0a9faa2f93a6d078f7807 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 0a74f798be04a53e1793a70faa7b216960a887f2..87cf9c35a6b9f0c7485b64427d2c06766bfa12fe 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 a5bd2500a842adbe11ff9bf5e29ffb4a5b11d804..c6a7ffe5612cf0b0d4036439e882601f1a58aa1c 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 12c4ad60e60ad03eb98d04662eb237805e78e6c1..89343aeeeb358186016feebf7df06c4dea18044d 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 12a0addadebcfac8ff7b4bf36ad6bccad34cf3ca..62f5c03ea95cadb77ac73573a3abdc3ca253bc5c 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 a1f943d862828cf65f6b249793db5c20039c17fb..e4401a4f3f46cbb772a00f5803d4b23b9d762ad2 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 e27052a9b0991626109715c7c01997a1b332c627..f911f64f5c5489215e357fa6e74c98651cc0ec9a 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 21f9c76a71ecdde287f7688020dd8c56ee7c4533..2dbb7321e6b14389ec940448756b5d75330c591e 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 83a612b123c835c50a4ab54d80ff7bfb644b2928..2a10c15799e96ed0858a73c0897111877b57d79a 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 60346d3c40251ed66f2232b6d3d55e2f32e6abc7..543f1687809253d9aeef22ded3fda4f06f50fcc5 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 7d279acd03ab263046bcd2ef1428e62c15f03ab8..a03e7694f115ad538a93afddf929c2d9ab61f828 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 d980f186ee070089eb6ba34e9c265f64cd932b68..409752dccc34a0d946e0ef271d8f60da20976df5 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 2de1d996b04cb55bc98e4c26616a10ba2eff04e4..b76e5499ac57f98b08068e7b5fe67e17dc6e9b63 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 ecadef24085aba106657e0f8fdf892d21592564f..3616cb5c91fc120eebccd53a53cfa9280a393ff2 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 1ec8d473eb722dd066e1d5c68532514a1ead63e4..fa213affbdbe5b672cf4753eb95e6e4ebfa4126b 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 2d1f95708e9fe3fea90be2be624f0e09a2fa1d34..cc73e2f5c3a51241f1e4824883864729b96c64b4 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 e7389eb5e31a73240b80b04bd7d862b231b17542..0df9fe351d35f66a60b70ced9567b40fbb2792b0 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 d48802f26137cbfedf1b9815cf1e501406f32980..8d659af8437343717e16c15c793adee8a392078b 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 47085d0070085957e977d5e05fb5d963ca02c0cd..69d9e7926c6f2bbf0fdf74378b22de086c7ecb9d 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 75488af179007d4d425e7932e2bcf943453e8d90..044656a0fcf26c50bd38fa435b18361f1453bce2 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 9c78658f2a711137db84b7e080c3407e73d38934..ebd308969a21e06468c82b845ddf64abff178131 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 e31b3de76dd1ee2e7893a0512f6fb08ad3b15d68..d5d87ed5111b2e8a025220b7bd9674ea3acf77c3 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 14d687dd59b817c0c585e9ce522e31ad237fa6f4..13043f37352ec3b5b968a9895a5c35404c99c5c5 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 fdeaf0382ee5c26441f551b69e8f56aa0d38a49e..ab7ccd2eb98312db2c31a72cd42b1be878d07719 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 2e43dc6af036151c6edac29048874c30725aec29..b6b84f89bd844e863c3b896f3d36e45f36d2cb7f 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 5dd72bfa64172178387ac4d467e962b04bad339d..51748d140812682ddc98aa250540d89b7760c8d7 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 c858ffc5cced4d20e2a48161da8e2871f35e9c1e..fbeabc856faebcd0ffb34ad613f9ff4d46d64153 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 1ab0f56d18239ea66da3d2c51bd128c23801d840..86512ab0c34fedf8424afbd903429ddf4fd840df 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 2c0d08d9c53b0d384c2bfa547cd730c4b1124ccc..d033da8ed66a4acad0e70ce5544396eb8dc59f3e 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 c74ae2f59ce05bb981db07ab158dc214b8059c26..e7fad774c51f2d2b72530f348d132a862b818734 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 274a3a9b11e2ef0fb76f04eeee5df34ec704d7f4..af0789d3ada1d27717befad32ec09da455e42771 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 a00d8e9614dbb169481afb1cf53cb015693d647b..4eeb543ec6c32f60c92a767ade76d0ec0ec8864b 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 5019fa9f57e57c1f868bb154320da1f772efd692..451112d1433733ee4e1ad2146451ebcf92da790c 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 2fe098b490f2ee931dd0602550eb8368448bfc52..dd32245c2cc03ec37589c4fd01df89065465bd1e 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 b5ecab444d8e56e57864447fce8a44ee08d6234c..20a025f33054d869b934055046b228130774e643 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 d134f31a0b31ded89b73041a6f06669a473ce44e..9a4bc4e6d25008a719ef0f951ba2f0d848b0013e 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 07be66f7059a37799c96995258d09f584ba8fcdd..8aa8f8f7cb289f9aec798226d8f26a0b07667ffd 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 ead845de96f37d0c1fd05ce20cf05dedcc56c83f..ba5fd0be5289b736e0db6fa31519eb76980678a9 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 e7e99243e81e0c8842c623abb634647dc3eba793..7def2759a8a997dfd75e36c62c9c0f53ad5f46a8 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 88b7da277d2a81e5ddb45f3cde3befbc4ce42a01..396beb401630896e0904e65f8262edabc78a17f2 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 b1fb20cb61b59681d507207da15786e895dfa680..9affbb89fdc2044de63b0d03debdb1b884dc30fc 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 8672a6478280925c93964cdb8d975e4f6199309a..2c43e97f4ad3b62f34db34a0cc776798a358bb63 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 245acd5657950fe2b06b7d8c976d64bb88f16451..f0a4176c155029d89a2833f7f9ff252d24bfe92d 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 da6532aec51f32b86c11933b24ed557b7ac4ef6e..cc2c5476d082b4640627489ced8707b29fa7a17a 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 aedd2e6dd1c065874b249292bd8bc3507266700b..edf3ddb2efa98800ed7e96d4948cd21cb077c28d 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 3ef3a66f6d8943a3bbc545d49e4870a9162edce4..146d45bb2f31ec6f6fc728e7fa6b907f9bd38d89 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 f6e5c3c560d0f0a49d3ccf1f0e2f1784d5c504f7..bd81d5cf21076092c39640b1af7119c1a47b0b00 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 0d15ac5420ac05ea332c2ee3f27eda1cb260c905..3fd48e72a3fee7996e74b7fe972386f667f11813 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 fc9109a90f78c50bdf9d27b9a3d55df45ed7b1c7..69ac52cf6033efbe37ad37a014ae9f94d0e82f02 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 d2eb3c4cd50a13f0273d953afe2a00f92c7a47ac..e734668d7b7cdf5dfeee39a2e8563f07c57bb295 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 3acb62adcdbbe66d19470b95b1fb4819c8ecc8f9..f3402cacf6a0cc168874dd2ab43199e37084dcec 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 3c9d761dad08d795f6b011560145f5b03c7b2dd3..8850080e0e24944b1f062c07f9d061826d1b1f27 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 2ea8c1349e477022294cebf1f2a1305ac8137f18..6bbe6b3aaab5d6ef65e905af625cde59f74f6b15 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 66696138c1d3d99152b59e374790164e02e91e60..da232a16a5c76aa4a094ab9955bfb6d1217cd914 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 740b293fc98a891672d38589199463ad6149a466..75c5f53096c56790c1141573a6abc2766a5348fd 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 db2989acbbd14c85ce1b7908a907ba99f1667d9d..3daf520c835ee7541bc2567ec2e1a9e6e78daf3c 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 f4e6a6a5479aeccdc13219aa5867de3327b15e71..0cc48dcd0363d53b6019a87cd305856fc2b16dbd 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 8503c64518ba30523f6b694da726434f43bc0dad..1dbed90a589078b4a292944499e03b7ccd77294b 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 59ef0128bffa5c1e08992f40bdd12642448c4905..385d84883b1bf0498925a498ec5a5ff030a81144 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 baa87af94d2486eee81d76223df3560e3e212b70..af2a0a95c828aaca14d41c5d4e01b1d7b4a71372 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 74e4d5c35b41cf771d43fb11c7e2948eeb62cced..dc54825dd6a83fc0c9f1859270ad86c83bcdeb9d 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 dff9757d0ef4c84117748d31cad596a9e5c1a73b..3bdd97d622d1d62de45a5985251044ccae6dc59d 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 5c322e03cb009e3be809494e46ef50e23a39a925..0e31c22ec29e74449447e86c478e1b5f0215d0ce 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 0d3aa927326668e80f9ec25ded36010a795d580f..559e964e1a8eaebb02afdb30a0d050d3c5948616 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 59d2e92cef34acb6d39caf80a034b1701d0cc34c..da13b6720aa9f0d3318084ff86e7f6e250c8ca51 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 8263c3e0f93427cd6bc3981e400ed1fef45f3296..a788c9fc1dce04d8a622cb06cd5df250e050ef07 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 88400deda934211f465e3fb5c30b34b375a28a23..97fa6a1668e3984e53317cb654278b5912700254 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 fb7b096ce5943639da462fc066484c410d626da4..4c960d186a3c21059a53ef4d2220e9b90e9100b3 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 f8c20ccb79875ad3e2693166cc27a145f949bead..09bb191b5703d8845cee8b11a976618cafa09e3e 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 4e1dbd63f4349b35411a6148d2f04d7e8089450a..9af9854c03ea710503c59daa366a9c112e579ac6 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 ce330624e1981e7f35b28abda9ea5c94785489ba..db42fc0fb88e2658ac4c69ede4c30eb8336f156c 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 7abafb058cf741f1869c964191391d5a812005d5..cad9ef57ec08e850973448c2d044f931f8c09711 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 83ef23863b9d3b0585b993faa4dcc0b453af6894..0bf1ac802dd3dc881d81a094bac615c38d2ea2fa 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 943a63f62bc77ddf951030c0bb6ecaed30cec449..3c5f284a8ddaf482db6cc418f85eed5ff89d3e68 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 263f365f5f34244303aee804803c6608e7561b78..b13130c4c4598c076afa8fa6a92a20522cdc97f5 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 0de13da2ef87d04e98152fb9419a35a8ae844a7a..220258972583404b0e730b4f33544a8661ceb030 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 a68fc3d26fc622181870bb0b735656a266c98cb4..df6f7fd0a8d9b882a7b32947a913d17e770a10c3 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 e161cbbf58854669b09b3d5c628e321f0cc1188b..d30fc4d7ccab0b35b1760887559a859934c132e2 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 fbfee1856c289ca1221515939fe5905ea3ea2970..64848acf34033c3f86fa5fae89dbab5863b3c5ca 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 0108f57caefde32e823c0698f87f9c604105babf..adbb1cd0fccae321ff1b872538883af37dacd68f 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 98e37afb6e0bef1040d51bd6e8fd9d13fe8cec0e..a60984054745403ea05ec23ece7976538e8a90e2 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 0c64717047bda9ec71f2e9d279a08665255db783..f81ac8bea9026d650dbdbebe459289a85b27c884 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 60266230b92ebdd25c54f6054e0e5f6b664790c0..9e1365a2c016431bfb85d553c404554a328babcb 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 8713b3fc338963e8b326833eca639fbbac40a418..5173bf3dc9015cbc3cd7df17d838029b910713b4 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 5dc096175ca866c33f3a2edbb0ea1befcc1735b2..4307fc4a3da6459d883a356d7af263946581b61e 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 8b334d1558365f9ea42944c26ae5e0991fa05499..0effd9ff12f965d56a806a8b20deece5257056ea 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 88f9c3b9765ab5d9b4d62350a22e8616fee095fd..e95ef96b21314aa83d22b95acbe6ecb55dd72c23 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 44162ca59c2ed0c22b74e4819dafcfaa0fd89b95..472591a02a15260f5f5e972dc049fc1f4132d68e 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 9dce403066b0b050d44c7430cd8875d21744e606..7a0afd7fea54e37db2c866511e8af2f17632774c 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 44be085fac2518ab472ee262f2926e041f01a17c..732ff7144811f832900ec80839408b280ff2bd8a 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 44eebed49f094e0167b499978763378533bedf04..3dc48105cc6da2253ee475d96cfdf2ad8e1a9550 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 071ed4d529572ccfac3a8fd06ec96ce69a866312..aff0ce693f1d9f2ad2936cb0c3da0f479f74de19 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 848a40e3233875365c9ad1f9dc59979d6c224324..fb3e13e0bf226d2242295e6af60f1b0854ede637 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 e781f1b2cb07e06da14a040211e4f3cf37168c0d..2b3c727f7f52f0606389db1eda80592f9c9b7b75 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 4295f46cf29e4d3ddc8c475d1c20eb354ab75c4f..49bfc1eb3c2ba7fc91b56a650b7a0e3da7bdbd3e 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 ac6aaba846bb582608e25bd6d60ccf86333588e8..9d0e030448d219febd3cadc07449a772b6a5e412 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 ff3b4e30f8652f34cda362fd7ddcfb8e85aec79e..9863325b421d8035190fdbc103362e5226e2c796 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 226d3edc7be15f5a53755a09db2490e4754becff..d40fd85f918b88a10e1c0214507bdeaf9a699faa 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 c1b3ed988b29d75249f9252ae17cbc8c2c7b2e72..44970bf6a2f67b377fff35c95ae44f03a5d13d60 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 bdbba0d4b56b2a4db172a264825d394323421cd4..1bb9cb5f9482995edde0a9b7e129e751ae8918d5 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 0934e3f5d296d0ba107fe40a5ea43105081e8af7..eae424dba22e86458dc3605940d9ad8c10da5553 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 e976049b2b4bc5ea9028d03d0e1b53b0c662ae09..cf76dceb6b2fddc5d162f9d5b22215ede0b68288 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 02b556fddd96cdaffc503fd9381e7b25ce44166d..ef0cee4b354955c8df267bdbbae5c04409911e63 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 49f3d2ab36b5f110171fbbf4db849872d6b9cece..6122616a43d6d3147a943191c2887c1445af7a39 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 aa043a4e6df01631af056815dfb9b78fca3f01c6..db2d4e9f52b6dee2fafb24ed20e4dc4b386b540d 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 187299023ff11f0dcfe3bc7e90f1cf93ead77a0c..e21c487a9075d5844254291388c0ab906c40c0eb 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 d855fa190510ca9779cd3e05ff626d6db2cd4357..fbaacc0996df324d2b00bb6bb10895db55471a41 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 ee0843847244c02663e1532ea80c29a4e8932f67..62714447ccb3311dbce95de37410f94efb1e5d45 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 e93932e64dc00e85019f0ef9ee88ac1fc959f99a..d17d0166dcb2d77d6a6ad14ba2f6951e6fcaee78 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 a9506704a980585257ab91c2589092eb892bf5ca..35409e4f803872cab88215791405f1073cd989f5 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 56132eb032e21a979019dfb595a1cc12ab621774..1f350253411ba2850048f04ba6f4ef4821c33afc 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 ba8844948fd0bc03f4587375ee57315a383293a2..82e14da09a65add62e3c1c66ed98a38d24e623f5 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 c2e9b57864548e4929de6ae1ac822ab9d1bdc0de..f825489dfda8956b474ada03ed7904faf2b9c673 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 0b25dacb66e13a6927bb36e6cf030b730850da27..cf08559f4e0238f499e3986aed684e721408f9a8 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 9127d6e3a016c300c216960ab4482efd005c4f5c..021fba80e246bf733b79f23d97bb7ef0d7f49df8 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 e69649d07dffe99fde5a7037b2103f10615784b9..975403d7665bf45bbc2c6a36bdcd01dbf4083af9 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 38c97fdb8b20d113451fc30faf1349c9ddec3762..b691ecdd404ad0229699785e1f616bb7aebd20ae 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 bebd6e50057f92711a0577cab06a07eacbf1c972..d23361857225e18071e42deba57d75a2d35e7f4f 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 ed3fddf05b4b8bb57a1b14cf040c58aac374e34f..279d286be1e80b5d6479bbd8848903ec58eb0f75 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 ccf1162382f230d9f7c29fb4a96a013a77227f6d..f8a322c8eee31560fd2b6f9bf2e34504739051cc 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 7d4fed3d9d160d48e755def5cbd4591dfb727213..fe9694b6aafe9019241b360ce57bfb6483cbdb1a 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 001574aeee6fc6ae3d4f21fd204a6477926e8c80..b0b5bbde152e310e4ef993582ec72bcd9c4c914f 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 808838d6841dfe5e4f0cbed28dd4d5d21a942763..b7eddcd568082317292c1022f017010f48478452 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 e8f388d2418bef016d76279b21eba05b5df2f965..a10d6c05523a0e542231cb67a9b8da13751653ff 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 539d230469aaa5912f11c8257832ab6dfb5ce166..463d78101221c54bffab35cbf65161b38a5dd846 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 6871a6388cb6422eaff4b0caff3dbfa770dc5c88..54922e0d4e3f8b16128af918c005118caf60db5d 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 630106c03872633f3c309cb73fe6b76932b30ffe..84d8ed25b8645f2520023c1227c034ee406bb005 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 130021991dd1c786e51a27ced64100a203b86f0f..d50051f07482115247e9361c8f8e8e8e2a48f764 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 6dfe8a9e373979887ae19357229bd0f7dbd9defb..aab90403943d8b4a855b089b540335d9bfaba141 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 1f688294f8a4715fd74fa800b644428cac52b42c..24450f832cb90c28433590406ffb3863e20612f5 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 c921ca156d44c624789768578b29b5850c066827..e5665418df824fad49eaececa13d15f569df8819 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 7ee6d8e17fbbcb0799bb37799dde28babc97e3c7..00b8b11c1af9c257120c58a4126c15f67cc8e35d 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 4c3c1393ffa5d3501886002a51bd12ce5f2fd0bb..1fdfbd0e43847b1fcc1c4239e351f3ab6b9ad8af 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 da570fd735c8a63b034ff6cb4a7d4e6c9a7c06a5..370e0d0737b4fca0ecd70fc7fc57a462ab2dce6d 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 24c1dbbe3ae9e471eb5f12f73b85aa3af7004eaf..a8cfc1b27ba77c55e8c2dddc0a061b8213e4e670 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 47f993eadc7cc1d86266f7ead96689686f20ffc5..30264a0e127d5319e9e8c9154533c0b0f60852dd 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 677d6bcec7955ab2316c6878cd97d40f355179fd..852f20016f0fbfa0e12ad9d171887ce6289866f1 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 280859f742ec92e9ed90900dc009b43ff938cdd2..047867a5f6f6a9a5f090a007f1591888069bb01e 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 b2ea257c0f3cc1933d858bc60c590cb6d659fbd2..4c6081e3b054be77f517551a95330454425532f7 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 27366aa024c529f5dea919619afdba8909c56ddf..efa8ec11c35df5df8a8495883660f7a9aec1882c 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 a138a5b28da50399573face0cefda856449fcab8..c1dd0775b92e54342935625baef5ac1977e327e7 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 b4b2c1a8170894cb87cdfddc65491d0973eb4b21..d34ee0bf601f0e0cb9a517f5aa73a6e007b87484 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 d2f1e25b1e0449e0d0b4fadeaa7e9e56cf53d5d0..9a5fe7e7fffb3fd0f00c4cbf9d9fd398a660254b 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 02231c9ff3ca787992a1f7e1462dab95d1e7c1a0..0a9533ab9ea2b374d2ee77db0b46dc1be0caaff4 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 a7563e653c858aaab81e9af8cfdf9c4ab3314249..4fec18294526a611e25458d2d1467514b0d95aeb 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 48db813888d54e0ea44b1846e2df86fc62bd4665..b755cf0f871cb58a605026daa8fb6743be2e0669 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 a1cc05a9538a974678f14109b84a19f141b169eb..82bc838b5ad92ae1f6010d8e5b13a4367a9fe735 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 740f8efb757f1c686ec6bc41ccf0b588c05451fa..6197f2c9d2072b09e611ec1967e1dcfd9152bcf0 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 152508988cb232fee9203acb219620df2c4a3bf4..b6971554c7eaa907270edd88ae56b273aa4b0758 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 4ecb1e43a034452c4e77af9bbe79d90db01893ba..0d67f9ebdcca881c53a32f8cb635f68595713b47 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 c25d25eba2a646ce7ac7dc3ea7137fc91c58421a..cfd78c476406fb811379cfda18810d0970d9d72c 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 6c608ab71f40f1a6096bf75d5413d3d3d84bf447..fb96999d00055f00f7e2db7f29b94a5aef4a76e4 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 f799e8a71a883354d283bc65957b8fc28d437748..1fe9f4a4f73e6e173a49163f38a2051633f368eb 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 4e94d16d4d550fa2fdd629d925eeeffa936e0672..f13d06aa3e25d23adb92b622cb30f6c7cfbdd495 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 f2d605c9fd0f33d54fcb04f42621cc87000c7541..3c01763a662500bbd69dc6fccac24692011c96e3 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 0848641a282ced2067c74dae179e4dceb01c50d5..06b849a12e4759b5fd12cda183bffed60317e805 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 a08597fd92510135af4a795a5ad16642bd03422a..57402fd76408c5b9d279525e18760e5f2da1bd40 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 8aeb249454204ea39db1e889fb4ba6dd5ed1d4ef..045bcca57979321f396859d8954877fe6677e910 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 4349f223271fcca9e4f909cbef5df3dfda2cd913..4f52b2aa2f27c8f933c091419f11b34bb915fc03 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 064a6b508b7f0a17f367af03c8d73add219d3daa..c087f6fccfdad99c4cd6e9f26817ba9a77b8d53e 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 7b1e97e784d78dacfc8d3a1b61444a31b0b988a8..f34f9d82b2ad65a99b24b4f0c120d86609152bb2 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 3ae04d099413cb466bb9a503b7d61ba8ac293f02..7cb7ba77381ef58e3ca5440b521cbbd29967e3ba 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 7b3fd37b4128d569ace097a9223b5a7188d59636..305f13f484157df959f69e0a4aa1cb3df117ace8 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 1132c15a024eba4c4a0fe8c8ddd742069ddb5364..c62ab0017a8b86c69b164154bfc793254f60a751 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 85fc31868894c1865273dd85a9d9934bf3afd084..70ccb0f2eb8bd3084620631d43a1061a5fe34cce 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 830daadd1f8a44c1604953cf37fcb6bd0e922d19..80bde0b8aeb541c866742adc2f3ba8f0e834d9c4 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 35ff4f5daba2f7ca88ee22b554eb8265b33475c4..0f8de52f6a4d082f784a726c15417ae25b7b6b6b 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 55b2ad251aae79843b4eaffd53eeb36881aba518..e7e93d61cd27fc1b3eea6d23f2a2e16b62d0e0c9 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 3a2e008d3fe1db53ddf77f7f8b15212620abe774..90a7181c71ab38a157bdf2b33418550f2118620a 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 1be338020c91933860c09e06bb2beeabe46b7af7..e04018cc84f62659db6aaea285f7d84a152a8e9a 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 2bd03ddcf4cfd1df4abd5f255629f1763d0a8768..69bc5b1dd4c01d4abd762c7d7e9e268d983465d0 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 30477b7eff9868c78d297f5104a1c0009de5a7f7..cd1343d0da4420611e3f6a09943edcfe634cd992 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 c3904fbdef7dad1746e0559f1cda941238142bd7..367a3d5b5f1777e298d58875683a3d9ffbcf6a3c 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 33ed2d0c2ca5a516be9f96b42b68a046103e2694..b2d32186724929a239edcee062bf19e020650f39 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 52ede089a58bf6fa1ad552f6acd26a22380e0660..bae9214ad9cc12f471486c57e860cf192ecf928a 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 16528f59326a2b3a5e5d2e5c5985149709e21289..e9478d288fd13f3c78e0ad10157bc809456c5933 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 21f09d02e464d525bd02f307a4b8d2fba435e29e..b5dd4da93fcc0d635eab7518b46e843b7cd53e1d 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 cfa2f275cca418c29561d6a283121bfca9a5d3d9..b63f91aa474eb51aa923e4665e64791b9027162a 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 3b6251b45247116d6ab35e7d80f9746b8c01aa1f..43a2ecb2505590f662a30412d36285c3d111e23b 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 f1a9b8836cbab06daf7f90967736229c51ea2255..282d43f8d74b74614d398c2cad2b8f1f43c9d1cd 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 a61c0afe0f2349740f1a43dfc1309f4c73cc37a4..68ae410cf2ba9e8d155b2ac314aa43b1cb1a6bfc 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 cab0b64479e90a3f323c262c992d4c127dcc471e..63275decba47218e8fd21a4fd3935251fd86db05 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 c3274738fbbf9c161481c9886e995a999c8ff55c..14d4b4b8a909fd1c7a5bdccacfeb08daaee9b992 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 30b6bce66c539ec026c2755dd8f40c7cf80c7a3e..a4355dc5bb4220b4acc7b5e7159ba22b20945c5e 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 ba3603466851b4dcae8ecd0cfce719ad806b347c..89e68a411cf2d522c1721818e1a06557eb3cbbcf 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 4361942e37406b91e4e6c233fbd0b7fc2f266997..051337535c89aa199da5ea9fb1cf1c1a3b45e4ed 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 1709d1bcea1987aee6f93567512a0099b89eaa5f..64fc978d0076d972ffedcaf38322cbac1091fe80 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 4ff1817a7ae3be3e59c3dc1a494d5e29cc12ec5b..3cc3421bc04f3deecd158f88dc74ab7af7dd1f34 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 b0908f2199a75808c3785f6541cc3bf627f99c2b..a4eaab59c5b97e0b0b1db7ca7898a5f467548458 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 706b6bbc360f14097b80e4216c03974e63342fe1..0b91cc85cd06c6545ba2858fd40dc0ca9df02d41 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 9e16a044b6d63d200a599e8758eab5c853ac14df..f2233c6b0db162d7ac837932f64313b51a011e33 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 68dd1a0aba2f82071ff67db2e486e5c7cf9303db..6ee93825a12681c1974337bb9085e731da4375ba 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 3dbf92b16d5558acf78e8456e04a30547225c8d4..3031b0ffe1ef22bda23f0d39e38b64189e0f93dd 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 6afec043a795af41de99e4e3a61d34470db917cb..f39c547f823e02e6149da4952a4eaf4a60c33d08 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 8d78dc4555f202c41090aae0c8fc66d0bc94b225..58835d3c4f50efeb72679c9e31f16a2accb4caab 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 9abb9b361104ca01b130685f2315e0fe2a6f30f7..5dd309e1cd8eeb8d382ab67249629f457db4f781 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 52c3be19af31d20240feecbb1da8db13115cce40..a6a51f3032d0094b07f04fdb19147b086a0d4299 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 dd8d31e08f6e82720447ede14e1e91ea54d7e7a6..17c31f1fa2d9c4d6853a7f37a2629c5235d03495 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 65a390796d1a1b2d652c2a878cbcd9fde9128b3d..9aae3f0c09d42717b972d37a775aebe50c3aa4f5 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 0000000000000000000000000000000000000000..f8c42a179363e032920113dc4d5cdaa26ae7e28b --- /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 4656edb1465147638b2157b145d1bde2a78988c8..09b3d488c82c294ff966155371e4465ab8927e52 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 18ee47f322896c6c5e854ba3673fdc62ef1db0ef..21c8807389e13e2e0fafc879510b4fae4dbf5e8d 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 aa4310ff91bb6362e22bca30be1b06dd3e3eeea5..2451146e290fbb39a569d1317aa3338daf3d83c1 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 39f96820dc10ed403e5963b779fa531397e32db4..34c463fc3caeba0229cc7bf347a6a6f6a5e0b6f6 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 95f3aff26edff3bb19135e3faed276223304794e..a6925ecbad706502a7c6888148e7305270f26b85 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 0c09b3230d7b456b532689b2429c165baba9c0bc..962bab315b39a67c5bcd1927c8e367528f796b50 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 4359161b8e5e1a3c4f2a7499628354ed946aa90d..e13512c8157a6351de762fee30b19aae46193b95 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 05c4ab5c652d662715632be8276d83f3520d96f2..ca16f062d5d071c4caf7ed9f0c442b0d02354715 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 16e683f1c20bdcaf03c7eb8f49ed22ad5d6cd08a..38009d256cac31af0fc5c66ab612add820a11b9c 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 ad5527b813cd93adf41a1c5e91379b79dfd7b260..41875cedb12557c51d5c4afe4bf5fa4161d2f0bf 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 d6a317cdd3734d0be87f23d86957c358a8bca730..74c7e09b65069c86d776bb35a05b072f66fb54ce 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 38bf0b1cce8f95feb5b2bf16e605ac98cefed01e..46110e50bcb231c71a8104f905724b03b6802715 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 8027a0c55df64872c12c9f39caa4973e5008ac42..39a541e7c832a7f1285bfe35bc2275e0c0bf6fac 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 4a61da15eddba26e105186844ec8ede7a6ee3992..bdfb7052478640057cba3443eced2bfc5146556e 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 ed2b1fd41024a7e282196f39af574b7befeae746..1bc421c8a073413e2a216ca0a50a5c8eb131790c 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 535f6b49d0f6d57f21d14e3458ecac0e1faec4be..41acc3f077ec94df07231262eea2265d84b993bd 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 2f2343bf7c729955d224831eef78b3066d6a6f26..767048414f0b0bb6cff9d2b2283c4822dbbfb1bc 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 aceaaaea1d417baabe093d9d2af62a2f9ffb02de..5c8b6f2a16a8ede7c844daa7f97af28aaabdec48 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 707e8f218a9022456831a1cdf1aa6f8aa13186d6..1f80b30e3147081d5aeae87d79de2d28740df364 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 0a89c11d64977e9ce819622a6322ab013bfffb88..2024865ccb448ef76135815e578146fc782c5e96 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 886ecb2831c41935b07fd42b3f6f827a79391067..0071bd9659a906b9802dfd39a02c042af6545fd5 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 a6290615ffa136ecce2c255ce13fcecedccd2123..a22f8a124aa6b4e15c98aa26f07222769335b04f 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 9e6cf14900757a65ab1ebffa90c5521345929921..03432df2dfcdd1eadec5cafe09fb401496c13cc5 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 3c577d754350b6713310f64f2c9d9aa69174518d..da9338c6a91d7d3c2a21251ac876db2db2a721b1 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 ee8b1c1d4a604f57d2c4746d8b523b8d97a6c1df..46db359c3b4fd733a9f04ce5a6251f99ef636892 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 9c6ac759799632046e3686c3f27b316455a82196..36e773aeb86776c3f9f634fd7eefebf7a6eb6347 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 c3780787ceb0e169bdb7496a193098573ffa84a6..dc38a4f02d3e007523eff164dcc419f8682539a6 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 261ccb6328582556f33f2b5f4002ebb7dc3d644c..8fd50ec90c536dba53aa732d69f0c226b516ceb3 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 ac843f2e5eb17f15eeb4772e76293daeb28bae46..9afa8247661f71bc60dba570cfa5816a25afc909 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 a324f735e4f610b7f44778791f97becb98fa72d6..86a436404e0d49ecc9f4a22a41c8764a40b282e7 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 6921f5aaa68cb4dd82b64cff6082a8b7697790eb..5f12d55a0a338b9348353746b96280fcc8f0e2be 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 91ad29e3ad6a9aaa0fd793ec130f94dc29c2cd0c..2c4882f3145a39f4927967945f3ef41467871fff 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 c5320c8938b3f14ca64b259636301fc714edcccb..4a6bf27874407d3698b4441f93f4fdb770a90e59 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 69e1c06c5a04fd4a810d2a49d86335c420f6d270..55723e8f4de82a63476e03894b6e09bb44bbc867 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 1021e1538aec5161c6acfb1c015dbe9b23ae094b..58b09cfa849726883babde378ee6dc024a58b8aa 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 0df560d427e44ce3b48e2a23a98fa7626ce56dc5..fdc4068812d770a02a1040ff973a7e56ae8a9cdc 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 e0d252b94949486247aa19c8c6226f74178e6970..41b386fd16093bce82fc6130579b003b0640e2c9 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 9a2b401afa0e8ff1577911cbcfe8f575451e8c22..5e1bd1f4755b606ed4a5465bdbef43946c0750d3 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 e6e03eaa225a0da2884fab48e2be96ae874af195..81ecf9d88ee48b50b7dbb365c3150e5fc8f7816a 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 e84252da0037d45a4cf1bc4a7106c2520aa950c1..f1ceba6c2dc3ec9b03eb8ac7f164c224c32c55b7 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 cf3b1b577b60f894418fd1a9e7c59000352626aa..5c305faa1ffb14c3173b43c694ac32b1c5415901 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 7b252b699be1bd36fc7f61f9a38d8c47a334b33c..7687eaf7b2f9965a367a732f96a1ce89e086e439 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 2bde77c03766ae9ecc4b8dc262f8ff40eb2efdd5..94aa406e966b1aacfc991937479c9ab702d41883 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 bc60d0fde37edb8836bff8f4ddda3b3355da96f4..d48e6fe8b965d9c7fbdfa6ee2ab85cf7bb454db8 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 2690156bb38b40bcdd8b069751b18cf1c800615c..f46c15dddfc6c74a12dec0e9a6d62fbb6611f431 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 a518b9a3014cde0a5b6465f834f5e8a9ab63785f..512df7191a8d8915e008c2bd2089265659a0b3fa 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 d9c8701093f7559fbb10370bbfcd371c738f5312..2c68a268eb6315ddcb2c06eed8fe0a82d7de4206 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 3289dac3b18913f0f40ffb429b6af2773181edca..57640cf07fa24be02e5ee15d3e342edd3b747728 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 139ae784e84f8d0e420ee5d22bd65d4f8c6fbbb8..c7293ea836dfe1fcd933a160599816ecdcba72cc 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 1767fa33ee81adcfc1b15dea73073d000a05f3a1..4ea685c3e6631decbc457a5711162a1f476a54d1 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 59f0e90d43f66aec4969dd886132c71ddf305072..f7262241638c8dc71abf245a77e4f82c0aa84b78 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 3776ecf531d50fbfd6184237138699d366f6a0dd..1f3f1d9dc160b0c8c4cef69a7620d46651ee3803 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 430d9882c7e3b4d6d283bf1578759845b3c602e1..b4f19b4b37211694ff0095d8839f884959dd9511 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 d2b789e8fa37d26b871704028fe0b0ed37d969ce..b5eb8aea034b0ed7aace61129f5754cc7dcfc0cf 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 8ade3625c26fae4e36652065d9ea022a3721ad6a..405f9704713f818c67c8031ad46014b1e8884cdb 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 4c11ddd38defaa94572e4a34f940cff828a18bd5..d9f230158620cd3a46ebde3adf1dbbdc70e30e88 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 c519f2f13217ed2f38dcfac25f0f8ba5e9baf9b7..e779a0717656b6b9eb13814486604f93c0e71cb1 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 66473abf4eb1a0f6a5872a8c06f9088d607d1aaf..86e79d97d51b4bba4bad1759bcba0905f45fc6ca 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 a07d9f3f92c34b4fb49fe5dd072acc96c63cbed0..30548e7b39b93dc996547ce69c83578f9459435c 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 74634d16908e7373ae1f1532bb2c81155effb5c4..530f6345dffc0ddb8f1da43298d65800c72a86bf 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 a00450dd1f7433bcbfbea03fd975ba0d36b2eace..2446a8b8390c71baddde5456380dd6a1d60fe1f9 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 d8cec58bf951d503d00b603bdbcc17ab00f6c253..b81ea7efc7cf2acb15dd8e5213d498266c62d73a 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 d6de2d32e1ec54bbf5cff2ee88b61d2bb6730589..28ca7f1352918b0816bda853b6ebfebb6f222948 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 38808d8f834f18e7ef4f3964b9a7d1807717089d..a72c684549c149a9f465673d0b43fb76195e5a53 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 8c7d41342f0b4113bdbfe5ba3362ae483a393a5d..e1198d5f29c8ea3ca261901fd4ec14c92738648c 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 4d1e43f27984e4704f28413947b8b8d1c281363c..afbbac3e7fe676a5547e5d4c772443ae336c8042 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 c9b6c1984e6ad59ea44643eab132235ef0194241..1c567afd24b83a89131d28d50d468c8d99488d0c 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 5cc31f594e06c3bfa6159830bb32af7dc627c99e..9d4a39f2361b0a12050eb43f875f8807acc021b1 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 9298f39b5d1fc7f891333bfe1b6acaabcfa0c9b4..64fded520bad7a00175e8d0f15ffd04cb4d80ee2 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 e9d9e4c431a2aa29031e1afa036c311b05631599..5a3167966164fb370d6f288fd9e6a156a8ddaa77 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 e9e7550615a8cb7fa78f6a24b79d8ae0ed236d6b..128a5a2606a60d85f1f5dcc62b415a3be59e43a3 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 7b3a56e7b7cc2a73b1fda35c9cc00ae1284adace..55f096882d2d95f1b097b4f3fc2c105330ed8285 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 365daee85f01937dad369e2c9a74840d984a5c18..e49cf4e2bfb68a15d7b5cb2a6f0713ea06ddb96a 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 dded48eed9e3eaf0ad53c2cd339ea22b33659cbd..93643bfad4e280527ee84e17a54eeded1fa89726 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 4e90d9faec6c50d3666e261a4ec0fbf7ab947c6a..de1d219a5a2e0808d5b573b3216d570208e72fb6 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 89ea0ecfb02b27eb2c129096f473245e75aec556..c8e0ee1deeeed1bb2f2f9c6c70b579e0956636eb 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 24c6d35c9c64d3112b03ac8cd9e0d905d06cf70f..23588a5badbd1707dec9ae5526691855f2552742 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 00f41138e6348a4327383b1752c6e8d6e314ea39..af798ccfe5972748606c96c158960849617c0f60 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 fd4ed33a90fcdb8d1e29017316dc80dce4d36417..52ca75227e65e79adf6c9c0b6236e85fc2d40a57 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 df81bc8c3afdbf85204007781c8cde70d907dfcf..435657a23cf6fe6918ef26a7aeebb53075d9731c 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 8d23ec09c6a37f73d2866293e1e9fd4844c1fa50..1501fe6b511754ee51d6d74182b46a0d61d48ba1 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 660602dd52b389e24f5fc4d75466a548b82056fc..f0107da6758bd660f96dbd31f81b1f4e9b6ccb05 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 0568e5493c8df2991ade7196e37a5579863aaab1..b0857dd506ca5d0602e37db3a8e3002386e24f73 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 6c0db143cd2ce93b2024842d30f1ab2f506ae07f..9d8e2bffb64345f0fb77922c128f618f3145b023 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 22a04a25cbfc22016ae02ed89473bbd33c0fce3c..3dce9e4a9dd672ef9afcff0fd3ef821a7094c368 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 4cc81519e454b1a67ea1b436ab7537883b867d66..c592368cf7e03816c05efd3b035a0b31e82e8683 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 9b963f31b00138a01c6d0ee1c5f396366b5ea569..a8ff4640fcc57d358c357d06444531fa1736da9e 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 51c4ad3267b2f2cdc58d2b73909ab06b197a19c0..4d2f940f16a3291233b646728d9f450a25309bbd 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 88865262dd1a3b87ad4ea766398b93f966c9e5c5..d87ae296ee6ad83fec114446eccf3c8b1834db94 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 858c54e636201ff22f031a78ae50c30d47808c9c..0b2ecde35c78dff2dd8580e9dc8042febdcfb483 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 7176415b22479045b79545c68763bad1c9bbd90b..7b0cbd00fd5014424677f13ee7349322c2329b38 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 46225d1803bb7efa995840ef74be4dcd09fe6b84..875959cc3643290750b1c0cae9d5b638f42249c5 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 8d147f51ff0b4c6ffe77a200ebde68b0624311af..a3a4abd2381ba0e50855f6cfdbb9e08da472133d 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 672b046171356ea56e80dcb4d4b2c02da53e7bba..d334c84f87016f995d10e34c153f0c61d5511b8d 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 0b1daf9e11990d567b58d42ed5fd21e5754a8a44..793b802e98a71dfb64df7ee2194f7bb04a91aaf5 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 090506b09e27f806279de458e1de2bbe8b98ca4a..35fe177fad14791f17e99c76fa2863cb40ea0d8a 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 7283d178d2baad2c5a18abaef67d75e059c256df..f6b8a7ea4dcf9a4af4c65c5e2a3740060b3d3a6b 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 31df395efd936517d6018e0e8803d8df96c6cce1..f5edb3701066a7f8781c4b593b61e478aabc6dfc 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 8676654f96989e92ee5a67c3df7c226481918f9e..88a6a41892ce2dc58e80fc388ca33f65e6191678 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 77abcc2da4cc37a61973c41ec4bd56e0c8670c03..2e610b08e15451134efafea0006c3f5268396f7e 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 ed5e897d7e1b6d7e0c428a39149a5abde0024364..e9ad13991d8ef428adaeffb74346803c86a2c3b3 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 6e646183cb8a0a9cc8ea9bcc92de9bf5d549c09c..537f615bc08c7c86da5ca40e8ef89561a1abaa94 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 e7f7fe395269c31d44eb3fa3e81528a8798b9000..2455e6d6399b69ad61ac2ec7fa9fc43a2286e4dd 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 7faa43d342359284c4f7e98b186705b25c9fa151..440f01d9858898b4034e8267addc1a1a9fe6cb10 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 a10dfd0a639e7824d27327a8388105caf392973d..17c5a11629c968120b4aa39a1f1e3ca1e88a2c2e 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 6cedca1a401db25d726a297ae0066299fcb3b4b2..13de63c8fb9a62cc3780f66cfddd7b80880fa812 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 033e146c9c1748048632877e0f8f7c4c326a44cd..4167a17fd3c6bad177cd970ece5d492005e1bcf1 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 89dff832bc204e468b681f6ed9d3047bac1f2e45..83196dc3dbd3ded86bb7cbc8e7ae3d04d060cb74 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 35f75ae228f3ce905828e0d84374119a96bcc6af..2ed5d1bf60e52ce215df3a9ed2927b70568752de 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 2e5c74e6d0b07b27d640556c68708f15ffa8629d..ac623bf02a1d626e6c72e836e0b204565286b936 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 79dfb7ad12b4404d2ba079b1bb22aa64b55aca69..ea1f7a3aba87af558f00b595f08b717a662e75d8 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 276cde66336d7589175697e587d5d99e8db28454..e9e0c18f389aff035b4527415b14a3633946b626 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 dfa0e1c5ce0d32adcbbcdb65832c6176b271a530..11cc0d733d1c415747bed50f138043d5c0273fef 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 4cc031e6ad2f776764095920dea0c6af2420298e..9c43e81a6528663e90cc8f83265588316615df89 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 8d6b2a25a2671e06b1882292390bcd4d45f60569..7bc5fa5fc8d765957c4c1879c6562a23c3a93649 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 2fb35bf1d6f6c15f9b96855b70ade668a28a464e..2e57b174feaeb3936aba6c25125856a39f0c6a77 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 d289f0542b470be7944d97298097167bfdfbf85b..c77bf728738630ad93f8d8ff269fc7d56169e211 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 185bfb2c6675723ccb17c6ec33b8fec2c9e580b6..525f7af74633621307744bff5e625c3bc6993645 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 bb78187597f5fc98bd49616f0d9777baed2163dc..f0515d11a9419bd7f4c0aa1322804881a5cd381b 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 918b044c68fafdef71e42793c2af56bb3de0a9e1..19b8d314fd9b80c093d3c64e723e2dd58f8e46c9 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 e1ca74e6d8265644d322db63bca8c40a4ad25bad..7a3542012f99d00d519e9eba330730a304579d7f 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 adb6455847a364c6b287ae96061d64b04d686102..b4d59b5f3dc6b39f27a6a40f017654482232f954 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 1f510858f76adf02dde142f3ccd8f0190adaa126..ec3a36e564b73efc57f757e404355c5ca0d34e19 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 e73061b4c6e8a1d8f72aa8e39ac612deca8252c0..b05ed88e656b13624dcd2cf853c760b491a57566 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 6ec3dd231f560cc8a639bcf5d898c2e0d0de17ec..efdefc0685b15a8ee9c72b59cf932d0e1256dca0 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 d0a26c554c31cd610b348bc2bc06ed2e8d0992e4..be8cd6972ad07cba796437824a88bb797f3b34ee 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 7cf496ac5a0271f634ec0e444185b82604d27ccf..86c564a3b79c6712caf8716ae57a18f59292dc33 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 7ef963582bc2a040262202585a8a11d270a6463a..cfd00fbab823d64eced146c27cee33ee4e2694aa 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 b6302a952beee35be108703551d6bb2ba22782d6..53e62bea91cfd690c9d34fb147076b8984ae1160 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 b048612be59987444bc8b904ac49c7d04c62a492..451dd4dcee34cbae1e39a5917bd020e3fb0f217e 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 eed851a471386abc3e0bf9043c5c29d56f919fa5..316d8c13aadf3b1f6eef2fa2ad6873c355730d8b 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 aa56db8834b4ae7e0f80a998261753b4f5c88e7e..de00c92a1c1384acf5d468afbd22055bcac81b87 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 8d8eb0ff169ccec8dbbf0a74a3b840addc93439c..564c37f936473dea0d2eb9f6df1ee32b24419e6d 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 d80dd0fa076a677f9fc1d0296143501306d7498d..7b3c5ec4b8b3c2455812b36767807dfc0e9906dc 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 da54caea3fd6173c3ebddf8a53010fbad71ccfa4..5e2588834daed135ef4eb0f06a237567a60ac215 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 c3b755bfaf361150f1f0a6f3497276931c9b640a..98643db5301f69a6f3fee2d2a6951ba73bf8960c 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 8c558456558400004e4a7aed2312e727fae33e84..59e556b10fc408b4fd7b84268273d050ddab1429 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 df43c9482cd5c1687fc42d18176e6b4f9b8894bd..f573b8992c26b461ce48ff88ab4db23e9bd2d1d5 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 f9b0d9ae194ee254fd365f5b7e2f61a7cbf3c9df..5c5718fc3d1d2cecb9a085d0bb172c8deba3a070 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 6a1f0122eca95a27d33d4e2497e0cb22429d8cae..d00c7c0110b2a7bf79d2355953106a9cd668f034 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 763607003c72e92ac4386cd5ac7908245c35246e..1deb25c64b40c485e699b3a0a2911d0f5f2aace7 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 747b1fc087ac9c3b13b17fc2fd5eebfd656af60c..71cc1634a2d13f491491061a1d7c80596c56c17f 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 043f0a8dc7980354f0c875246490e05f303ed9af..327d772f433835897c6b3126aa3a5db0668132d1 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 3ef4df6250e035a6e2251183d289ca72bb391605..d546404070718abdcd5df126381b9314ffeadb43 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 23219de08c4e7b9e90bc2adb2647a6819966e15a..f88c28ce75874ee3949fdff7050c7d7793c09209 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 b668ff7de336ea64a8421cd6d6f5448fec23db48..0a605493fda545b3a0ae55b84a7b837f5d796b0e 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 973454bc1c02046cbd5523576795a4daa361e715..26571db50a19823f6a7128e202bd0af64ddbff96 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 fef6ca9d9b54d387bb19d1455ecf327eea0e1f13..65a816aa97c7784783235f1d2d9b1869183d7d80 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 20953dfc93b1d8ff08e993e68e8c31a371390922..fa1505fdf9663f5e49f8b582229a4eb729a74ac0 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 4703097d179da329bb8e2c401340f29d1eb58076..05c227de1e5df861a7fb95bba66672591e20e9b4 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 c4c3a152784028c8aae1764f376b065f5c18689b..fde12da4d5a330610852b5fb33f6744e2dcc02e8 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 29193a589580bbce8ec5bb2bff1265f1fec7c468..c6dc3e04022f065d7f18eb730d5a98dec0041c3a 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 9b4abb4e2143394775184e8edc5d41ad90cf18c2..d244ff00f12171804c1dfe7c44d1474b1172f4c6 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 706c464a7ee0db660cb3d3824926f1154bf12d5e..004e2a64483d10dbd1f2cd46ab73b11b51b9c36a 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 b75e843ce9a76cf86adfd14816e3a5196ddca52a..e2db60f863c9b8ff108d06d118ce01d8f133e5d1 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 58ac4d420e6ae7bb7f72f447a423a99efab1331f..23320384222211efff706d48631349ca5b648d65 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 228be841e72f74a357716d3aceaaf42aacb5424a..fe141d8000e777d2d4d2d5e8e9b878eb5c41020a 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 7cf52ef12535dc5060f2c6a0838e3cd0f4453e59..f4067004970a349f71e6fbcf5651cdcfad395f22 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 5eb18821dec3ff4a7cb320c3d6a75c8d6e7cd261..593818c9ffa74efb2076b28a4675edaefa3bb82c 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 4321b3840500a60108048f0f42c5cefc10b60042..76c58540f514583c267ac05c953b2fa8619cbe14 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 c38e799309c4961b523b18b10da80467700f7834..9610a0f8ca60664c19767a0c0ac2d8890c5690e0 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 1cebf19c668f5ec8fb88b1cf806b71716d3c11b1..e0a102d23fd27d1e964ce398baaeea5f80d65ee6 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 c6aff12f65150b5f3f7d36ac86d64d8af77ab6f1..85d4759faddd6b58547ab689d3684758d2983557 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 330011e102d37965b0e35e6d91811cc211a6210c..e61c67a12db4d640de33dc4b3d0d25c357e0cf21 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 c6855d27bd12329b9ee560a2b3c70488d73d854e..f33e2dd00c553c63be36fd16ebcb6c74819335d2 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 3ff013cbc78aec465c69c0d6c51543b67a456dd7..b1fb397f4c210b47869990b7dadd57d20cf6e96e 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 3667f357ee495bb54a9a5635b1ace6e963594ead..6d76ba65d02897b6db043685a93dd6ac3949bff9 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 89d257bb93eb4588333b6df39c6c39dc26910a4d..9c29a659011096291aebbb1a3b1401ec5a6b3df1 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 c0aa15409206baac0d5d2ae8fcd22a0f51462856..a1b2cae337bca83afbac0842a41748ee2de2aeab 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 bdb551e4e56449d043ae5d571b5b6584234f881b..6b8b894859234099bc28c868cbbf8447b0a00101 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 75a8d8cf046b8648a58c10124f8ec459f079cedb..8b406c7add605b0eb2a72aab5ca3b1b68bd0277c 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 0000000000000000000000000000000000000000..8e61eb62ab0d353c82aac989c82c8ea5e474ebfc --- /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 523336408551f89d32a87c85db970324bff1f5c0..7cbedfd67c1fba54ec5efa37342443ca69cec609 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 90fd8318f16d2ed96473f879c75b8d9513e54bd7..59c385bbdbef9624d879e2392cb60921061498bf 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 615d16896610bf304630196886fb2166f7b57eba..d451141e8b31c9903d30e279a919c34b697bc651 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 6b75006df7bc9622ff3960cdf77965d6401f072a..ed70b441c76159d2bdfbcc4911cf903675cad381 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 254a0179c12dff263453e6d10264dc9a118d249f..d9ad1ef9390e9fe87b787cd5d65ed4af704551f2 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 de762ddda69eba803fceba3228b0f682b7fbf702..7474d93f91959415662c54fd9311baf1fe20bd82 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 e47f4d970cdc376d9b6e88b923ec107c92cabdaf..3d693bea291405d141cf694d82465260b7f6a87f 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 f4fe18223d86049a18d1f3c75704b9a4e76d778c..208652875d1f98d1a1915b0c7265b87861a1ffca 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 61f933d8b23981e1887b17665ef3e3466152f04b..36e55a27ee28587d0d2189e6365731c270255bb9 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 b582af189ae754e72c645d20d0f6885dd766bb51..baa7a833b5efbdfae3ea737b12c29aa89e5d761f 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 bb75e4656fd65a35b0c2d9e4baf466d0a5a79b32..20c5cd0896f238ec839793cd764ab7376b8f886c 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 78819c6d3933a4d28402c0e234992cac4b8b9546..ad4d8eb8d5bc8521be19a871b07013129a14454e 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 a002f9ef1e2ec76d45f81e37fe1cf4ab468074f0..c738b71e8f2201a4f34dacaa7663fa8315458f17 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 540c363eba8140dc48bcdfd6b121f2c698561ed4..ac07c1e60784a25ea87b6ced93f6ca4677e242db 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 3a94bbd2b46c4e3d3c8cf22e4b9105fd5e26ee8a..9e0c31b051887827bddd1ad0cd8f6478bea7be94 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 0000000000000000000000000000000000000000..eef0efc5b445053a9ee762ddf6ac9149e677e2c7 --- /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 0000000000000000000000000000000000000000..79297aaa3c68e6690baeb5707d0d60313b7a4581 --- /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 c10ac60e39761eaed91e18471827ec0a40abbf3b..0f49e16f7d177834d1d0056aca83752c0ea5e4c8 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 d4219807a375f5f67ac1d2676aae9c2a9d2bdbc2..37a5f1d5787836fd8d410fc45465f20f9ce9f379 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 bcbff2299e44f6f825a55bd1b60da4395f456d54..2669f745eeaf5ae724e7e8a3f0d80572d95fd6fc 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 50cb38192dc1eed86002f0288d50da38a46bd98e..f2225ca8caabc06e055355c15760df5e436d3d0b 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 45030ccbd66c1d2522e8b369621251cbd26a24a3..bc88de09a4ff736020d30cffbca64702a77e1e38 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 61f6e602048efeb8525db9df57db3ff0a3c9b23d..489c94eccc9020aac1ddca931ad2f2b1fda637dc 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 3cd6cced78dbf650aadd2e5401cbe640f057205f..c1dce61ca63636c07696d0dbe44ed7511b45e4c5 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 b1cc203c61d109a183c88b805f3eb9a1340002e4..22958e2c10988f2e4c8ff989fcfe41284f372922 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 df10dbd6b752ae875de37a503b227e70df8f90c3..3a479bad94e52e98e8696beb0012ac8c2a31d1d0 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 3465843fb0f64dc431ca96ade3f80eb3ff5de20e..597f0ccfab487a5136a3bf71d34ce319d42a31fd 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 7ae418fc9501557ec61c2243a6672c3ebb3e1cf5..b1400ac017a390838abf664eef8c892224f5bf54 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 99260d4e062073a5448b68dee4fac586d1686e3f..7b1f69c698ee5241b1013edd2784678953acbc78 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 029341f1d2f23b3dadd0300b5ea06e5138025183..9029f630c43b5c37c2d66356ce18b3da365fa050 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 80b24cdc6b56ae5a1ce05362bde70fa2503999ad..e0ecead94baa415ca064c6c76686fe1ba3b14ed5 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 9bc705b940688c3bc99729257c09068db60882cb..0cc1e2b214902f49cc8cd435ac35c9879522f7bb 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 a676a2736a48a231e276f1a98352cb6c40ac229b..5e381b30edad59e6bec6c842baa76b2989c7bb29 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 1028d17005491cb12f2b0b2637644f2712917456..fcb09aa8737e95df93672157307b6d610bfb4899 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 99bfaa78b7c513c8f00ca62d50f348ad74b3cf56..0d57bddf7b6a17614cdf55b3aa1eb0916cc27cc8 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 801448552be5cab23e76b539afc8194080cd32cc..8eb961913fce608233132241dbd024bbe4f6f867 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 49a8f5e3aaed6c0d408928eb2b26697d73d3f889..d1b500274572510c450f79225641d442bf4ec693 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 9e2bd2323f2d0d4a70353353c7950c5950df2302..38deca7b09d4a51c11f301f98053f375867edf6e 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 b13d11734b31d0d11085b4198063dceea94e9d08..181dffb6d48b578861d789b5f52c10b77b5eb141 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 956921853e965444902aace5b88ac266bc04600a..de26d976ca63a7908fb23d127725e421a65c688f 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 d7cc741449e7e531b66a99b5ee5794fbf6d1c1a6..b8cc5b049fbee7c95f77d9d82060d0e20479b57b 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 a546587bc84a53fd6036a27273331ad6f9b314cf..b80451bc88a877fdc6c057636324ed059dc5127e 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 2dde7a277e33dff54eb81f83cbff27f4e1f014cd..c25b8de4f9d60a08d872eeab548228447bb09b41 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 7281497b20ba390f8d6291aba8e8166096dac7c5..146896999ced0a6dc9481191920d03f1aab3520d 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 d6bcb437a80ffccf7b35cf2c562eca27adca916c..341d036a2be92e4a75d0b67c741490c4c986f66e 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 a922476862a03bdb8e1daaf1139662dafc3d7331..9a621602cdf22b705f28a33c249098c70c91d00b 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 260a2df800a542d7273a29ce9fbe207b4b01f611..a5acb69a096320209b9b96a2a55d91b0d400737c 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 25ec1147d157709e4c30f903f1043dd18459ee50..56d22b2094d5b82354da0a5efb5e24c2411fb71e 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 6e98143449c38094dc3953eecaf8db148ecca0cd..1c9233b4c3d37452464f5073498beb261c755d66 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 1fbb9f575d94373a31e3e6d2d2ea4bda76d38d3f..9ee2d1fbe7353973ac4eb604305fc13330cfb4cf 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 165d3da2b2d9b9afc2937e6092064a543984b44e..7ee3be37bfadad948ec640a6a6664096316d0a7f 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 90cc70b7651dbda66651bf91dbc5bf4d5723a6f3..b315aade806f47970eafdd3258655a624b37520b 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 0000000000000000000000000000000000000000..3d88e6450848cdfa5c4cd778e94ec050e8cad2ce --- /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 0000000000000000000000000000000000000000..94854a61b043b38a0acf56eafc424ea6c0463b32 --- /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 0000000000000000000000000000000000000000..b3a1d03cfddfd744d9f2b4c97f15ed9b7a385e15 --- /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 d7966d3fa5e58a3deb84317eee717080839c0cc8..e7eacca5d41eaed215606049103533979d470c4b 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 bb50bfd46343e61688dc87931bf7c74ffeac7995..049a4dc7e06ec65b7b83441586eddc576c8149be 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 789125e76aedc28ab0efbf6c57a803e4e988fa96..f65e6dbeea050f1b00b0876e76b83e39a3d92d56 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 5f8775802537234bfd7d6800d34f0a6c56081b08..e8a7075ec47ee84d641adb6f16711eb3fcdf95ed 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 70cf81ea248e0ee1f294aa4be7832b6884f7833e..608f7bcdd3daaf37417e19a0c16f3ed54f344d3f 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 ffd036f85c6537bf3df51fb2e62f28abec931491..9a35f31eafc7a3f05608981566e350aa1df400c7 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 51c02ee3622dac3234fe0bd2fd6fa7f5a278596a..e6bd04a79cad757dcbb821e0949c23ff560fc2b7 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 9ffb4901b77d200f2895a680294e9ae94af80de5..a4bfd4fc3d437687c214910fcde5393eb49b4cfc 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 0e7e93e01df5e7ac28c50b40d7f310a71a226541..ab96bbaa9372f85f3b81a0d1157f919d31766392 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 52698108f9197c99bb58f3f381f35f4254e3f967..0991613b286af199b68c36eb03389ab6bbde0933 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 1f6dbc16e079a44df840653d0a03b5ae1ce6813f..4b6c39f6f5e1221b127b4134af9012b6d9373c43 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 d79e6e3991cbdc04be81e0357003de38c91c684b..6e0d868e67a1067f56339dc9d3acbc32d2007881 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 198589319fa1edaa327a7decdc306eedca4dc149..690b30538ca11a16fc506ccdc62d22834045530f 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 663aa182c459b706c68234f4c86ea981c7abbaac..f9ed38d0bb847307241a12853a52c4d24dec5441 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 7ac1586eed19274e96b7f12c2cfde4136d33289b..a3e9031d96d1c73de1e5afd7350c63b4602a27bb 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 728b9e25483ad19ca168a45f395bcce0e7921640..066a995082031184559685d2d9e0e47badb0a109 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 df2692f6ad2be55ff0a4cae1b52753be753daec2..21b7018d2699d2940824d0295463fba1ccabd7b0 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 051cb13ea664eeb1212942b93d7f7e55bce8dbec..9f6e0a8b50b69cb782e78d7724a17e513ff4f902 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 d428b7e9b1fa69a2a99c06e327709481d09f3fc7..941c54fff20ac58ace0f6fea56924bef937f08ff 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 2c8198a82fc6413edcf2fc2ff06a2f7fda610c40..95446cce1be236762950c846a1ccd188706a34c4 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 9605c958db888aa22ff8b8c1a7b953f2b849b0d0..81be61b8e363dc2c6747d6809de4f352c5d22e00 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 f6c93c6bf7bb4d49b8bce8f35b1fac0c59002773..dee188ea85aec026c1b3d67c3cf141570fbcbe13 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 b9b0c09d9d20c89cce7b05769d1d424523d8b58d..34252b4bd0991d7346ae2494893ba33408a221a8 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 f1d08520fae1189792bed90db0752d44a5c3149b..dbee5e2aa69aaa7fef379f3f316f10f76bd31588 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 6a16de5bb42ff4024ce98d2582b16831a312d28e..01e072928c97bca532908f49c741854201eccf9e 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 ae6328a3cd3da1acd762205a04aeb11635925659..105769ab99180edb0ef5472f6bf982a0265c5779 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 4495c75d6bc5ecc82d2d9de076849f22d96cb2a7..442a1fd919815a6a026388223fd31f444471e3fb 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 98352c393eaa8c50232230e614146660590a800c..cea7afd90901be896eb747be2222b7cb89ea5898 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 2c8a7f4847c0f3ae8890be6a7135790bf223b823..2184c6b7966a82ef7209d8ae27d77df48f97d3fa 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 99ed2e91feaf96e93ba6dae758fa5153433a2aad..2ec2cb62f5ae2b25632324d46c78fdc7d1d4a62c 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 fe8c4d1d02cca34689e06f6fbfdb1e27d53aa617..def3747d061aa7a436dba56143bca1e37f786e06 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 8ac000d7f72b808ebe90131a1962f62d6ec8a4cd..38d03185dfb609e009584f8c6dfc8e87efbbffab 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 dff995fc4b27bbed06d9435f64c61425dd7e04a5..a2fc920ac13611b5cac1d7aa9a22f25dd3ba31d8 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 c2d3fc1549b8e3ad039dc4344496a35b4d50f66a..935cb5f10b5f39ec74d0b69283414a378a71b981 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 4b51ea1d5b8199aa23dfffb866a3e91e19f612be..2074330737bf7f4bafb489902af5687e80b192fa 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 0048b74841e034e130e920ccb520570fbde598e1..cd64af72714c9f058c44a338af3727f2aba44a30 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 20e015767c9bdb8c3767bb3d5d609b628076c2a1..54f3a79309fa38bd4353733fa131cd62727b8474 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 a01baa417528f42ffbbb63202e9503a2dc16f974..167b3c8897e46d572f2981c1bd7b78633bf22924 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 3ed7b14b2d7a1244e73afa17fbd24beba6d85388..d1959726f6e42429bc6d91fe030bf3f6a602a56e 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 5f9256372b3f05be84bca19675728d33a47fde29..8b2d04d52be587bfd6103556a5317929d6d9edbe 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 f12ff6589d3cb55e3f831c2fea3b4a9bf6141272..7c5acf9b0da9f4242134fa49fd5f79523a9c14b4 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 976c6f80c6f9e507dbbb8f7a1ff83c0182b07c3c..003c715061095a2bd680752aff04a3e16d6b93e9 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 6e555b6496bc97d30495977086c08880551c66af..1de40f6ad585c108cac0965a23c1f96c9bdb22e6 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 893c1c46f9818253c2b72b6008ea92eb5321fa47..5d7a0593c26742eed190a0389c9aaa69f4de3f3f 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 d7493cafbf4b3c95be12d6069f6183e97b2587a0..73db084a96d30831b8158346436b835f3a49f137 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 3a9983f168cbbac3cefacf254de27df77d596cc4..a113d65d1d598735d5390cff2ead44ed701be4b1 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 e85269ef9546c5f596c97c8b4e9c524faea7b197..c899ce42f45cb3537cc0f0d2ee232f0441d9f6b7 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 14e0c1c314bfdefdb8e278e767e2ccf6bcb7ee6d..dd5d4e580ecd06a08faa074d40a148f558b0472e 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 5865990b16ac72a8fdd97daa4e83ec94052e05dc..dd55c92b152bb7352bfef6a662118d469fdd07e1 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 bb52b165cc359abfa34d7d19ff949350b2dafcab..ab253554c4464ee1e5f62af7444c9bc01b938770 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 e85b6218374397dded00f36839a2d782aa9845af..5a28b555d1cda015a823f37173497eba29a20b83 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 22f98a8419483558f6620e22c042bcdb9e194330..014db8e4c5b8f56190f5e69cc9d0bfaf772b0243 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 9dbb9c88b647ca71e89f5fe05a25c086973427ea..d63c7f65ffc3e5cd56a38d69d363ea2321a5dcec 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 f37723b4ca0c0e2f3517c971bdb73a30e3745b70..58e4901dc6a155678e718f3cb0dcc5cba0abf442 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 a065698585c2a8f5115269eff907b20d33c93a9e..5322c9779d233bc8221ace04496bd1d84144f3e8 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 2335d9bc3a6f800d688258ab1aad7c884217c138..1e0e415224ba0fa8cf9ee60aa3bae24a232eca9b 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 ec73563231a71301d61057ac58df2fb50ada8d38..8dab4d1fe7a02071575669507576128ca1b18a4f 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 8d7a6a6b493f810aaa67c9358da1dd1e37732ed3..0d69b963f91bc218bc7d524e9550606e97d02743 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 f1be61f405ad3bbd925e5fc39cad3c50ec197487..3aa6fc7f9ab5b2c7bfe08c6fbe57685481397fd1 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 f0eaec2e0650177ca176477f3591b357bac0671b..4b8579e24aa77ed89d17762eaf72c57cdca9fabb 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 eea9dd8f2cfda17bcae38ebe4795836fed6d6c87..77dc555c94a41b90e5f83ab294fe14b7b2ec7728 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 4f5c67d042205bb124ee7c70e7e11fc5fca283c8..c8462d4ad84c4417ed9e55407805bb8661c9798d 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 b264673e6e654978fa024c2f33e1eb7b4730fb4e..423ca2e1a1238152ca5d56659de1443a01f3cbcf 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 279b239bc7a69b6b7304d91113cb58352fa6b357..52b3bc1ac1dde3ec84a288a47b32a2334b0c51c5 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 7268a63ee16316a3914b6dd4b8067cf4cdeabb11..7629b55f5a7c8419da06b4a9196342e5780da533 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 247dce1537cc063e7f6a46d7a4878abafc83159c..0f633cb2cb1612ecd5fed9dd117146c952058ec9 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 0e7430175d7659ee231f727aaaab89d12b9bc40d..4fb35be4ce78a064eda152a656299eee5128922b 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 6a00b63786570a6e2b591df894a55f483cd7b156..9efa63f2feb325fd3595126eb46ce3e6f1e7cdca 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 f1120c9ee633c9d9fcd7d1e8e01ce8b75bd303a2..4642b38330ea844f081f9086b59503a090918c0c 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 908d0113aefae1583b4100cc68207d557ff94fef..18e26e4fa143a0160e6e663dff9d400906be928c 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 04bd9d0be2de4d92056a88325e14faca184d379b..bb8f22c51bbc76ac6e1ab1db19fd06969414285d 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 3f23c3dd177dbc0b47ce8fb8143149fee2ab7c38..dbd25fd7635b96e8e815b05f2b899b70af11091f 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 93968600a7e578b2e8ec3f2ff6ce0c5e875e7247..1afe54a58d920eede2cf2b3b64e4981d53bf76b2 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 43338a00125f3f248577d1c3a492a19b82c8f006..1a38846b59ff3ec9bdd348d444e21d89a07d8fcf 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 17ed604c4faaa3c0717affed2a51abc3b624c057..a3eec59e69485e0fc1cb08f4794105d8f7455f14 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 52e922cef9d1769cbb1f7cc6eb4c046075539175..027bb81a859eb9153ae2b3ab3fa95469ed965d23 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 7c4cc74a67fdd875274e84f5736b0bec24ea717c..6481e68916de3fa93dcabfcd542a2a2be199c316 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 3205f0a00cf09697aaad0a485e3aaf44cda0846d..c45be4459151feccc83db613325a1cd7edac9e36 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 3cfb556edf2746ea54d62460984a3114d0e12df2..1d83c6a6def9b6bb3e4eb8b0a145daba015f487a 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 485b9efdc5a86e45d878eeb9e3daa1ec2c0852bd..30ed5fcfd0693fb8c7fb1bd4af409475311c3bc8 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 fb4b246d1e4ede9ab18e445499bd81b2beead11b..9665b0bb1eaf06458c64eba4379d440d4db02609 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 61e16e75b923924aba9efe720093387fe3eaee18..73096b1e661882e4b633a3859f34b74e68f5d472 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 ebb1996ca0f4e8e5af32dcced357b9946b21361d..842156e7d55f730bd315c0b027f3d93817f32449 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 43dc81b20d6ccf70cd2878da98e4c3dcfb05a6e9..c879636918c0f18bb22b774190f80e6ffe353900 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 895d9b713d6e64be3d13b3465439f1215171c7db..d7598be36587612962bcbccd34542443c0b28459 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 262a4676352e68aeaa822f3577a43dbfe7d683d4..feb202d3f12aec50b0dd83f19f74f7dd45b8b926 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 924e5e1f229b5d0423f21ee6dd613f15daa2fef0..b8cfacb36e9c56f221044827f3a1980ee7afe641 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 60ccfe95b114677025e5346e2023b9a70746e89e..d9994eb6d83a1ad98456a4907e1bc88ec8d245d6 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 5c492e70b568798e0dd3c71f8d190d2c8b9edc0a..27d76ea4817e7e0e1a7902a07da30d88c7809bb8 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 efcd49e6dc158197ab81c5ec77e32d87cb297199..7efdf18fd8f1a24454707706def1393f5d767b72 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 6374c68b03d878393f41af00ef89ee4ec90e1e04..36213d258284e4dbd87f977d191da2efd6ec08bb 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 690775a6a48d90368d36aa2cc0aca0014d88029a..bb651d72f41e75939637cfa7e032aabf88a7d1a6 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 cff38d55d064d001354855a5c7379bafba58a9d4..5bf75991d1e6960b8a2fd46da985378717ebb784 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 1fba0e206d12c8959a633336d23d5eae9fa3de7b..f361ddc0b595960878cd2d8d3e05e49853bf9ee7 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 d9caf206c6481b750754932da6fba35d443802a9..5d65b7ca2015ef0ecb163133949d989500061408 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 d3f4de1e98e54ccfcd860b05a306709882fae8e1..a8c4a0bf2e32ee29eff1e360d6bbb11dc32d9b99 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 874dc9aac216882821d969d4902aea48bb192563..cb2c68818d66d7656a6bf780f6997b9d561d4084 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 1baf4e50ed41ad1d0dfd343dfd5a32feaf7ce386..c7d7004beacd103078283e6dd2183a2bb182a7a5 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 ea5c37e5e00945b57c2e02790f83dc40802d4a45..87fe271355bb1db41dd729f6734a253352db9ab0 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 2a3e8493d3c6403582709d1d695155d5ce21d17f..8409d91f81f34c369c21c0034ec109068d238a92 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 90eee25a6b32a1167ea5b6ac1e7ea14697b9a407..bb7ff4ffe73c060aaf8acbd467ecc4eb854714b4 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 c2efba6d854bb02f665e5f9153da22bed50d5c05..ea288a0c86885665855eaca6866bba5bfece6ffe 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 d4bcfba7cd3dedab92f3167829a9970dc6ec5189..be23369e1c2c5ccebae6976c9076a9fe93fdcad6 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 24e4dc332c9799ff325b7accfe7cffc8c4bac373..49530b13accfaae9c78d40d77a503ebc40da8e14 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 60a5568e365be2678fb5bea43afb62526d639966..1ad761f3810d7b8cea022aafbf5ae0025ded919a 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 36dc67a4a474a319dc662e26569fe35a1526b0d5..37837d1290d63f9628951aca78afdf5e904406e1 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 ea5c239458d9f930bfba07ed242e557b87e9b3f4..5ca6977ee1c884e644fc0fdf266d39416113e161 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 0000000000000000000000000000000000000000..9c6999578762d7cc36891b844274ddd30176891d --- /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 0000000000000000000000000000000000000000..d9ebf9636e0660349a3094c16f45ee88ae151869 --- /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 e46fd84164f9a7656e22fd5ac0e057b7e3901d9d..002f4675403a2432343c22ce5bbd5346e27273c0 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 ebdcfed4a16240c3a4796bf378ab8ffa60ae2cb8..9afd6c5e93aac71cce0a05cdadf89bb0ef441315 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 f895e73de4ee01d026edb564caa28e84fc4329de..45661b8f22c4754d0e6a37789306842e5e3ae2c9 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 eefcbf0dd167fc209f4dc3139e9583e6176600b3..95dc4df554f7d7a41ac89db120f6972d7ca1fcda 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 fb926bfb3150d12eb44ef2ea53a96a89a5af2513..1bd372dd032c0a28e169c6a01fdbde9d7adc5545 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 30d10e5c5c8d7fe94cbe144e3a49f61f723b2b13..99aef876ce244d6fee71a39ee9e3e9ada6651db3 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 985ad8beb67c0e6aaa5fc75ddfb04152537a34d8..3684acb0635c8f228a7f2e14917f733c3fa0cd3a 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 92fb833affe38cfad572805eb23465106c7fa8cd..cc5f830d9f40c33ea1f158c84a7fe667b0e35ea4 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 604296f183cd023d4700b79633fff545dfb09de3..ea14971842b6e52f5359c4df0580e0acf76a3a56 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 7a115385761a1c5622e4e71edf4b3b7acb516683..4bef6b9fae6466f9d1de174bf708310243cc9220 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 e790c21930aba33080b2e075a9b343b4825699c9..b900c4cbf13f01ce7f58f40b8b859c54b7cadf0c 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 91ea93b8395aa0ee3b0ca9970a7cf356b3aad23c..a5445da175d63a65359060f96a11716689387e96 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 0000000000000000000000000000000000000000..0d33d0ffd92da486263461d77578888e3f4d19e6 --- /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 138335f508ed954bb8f86c12cfa291fb2fd3b389..dd77a5470b3ee6ebe945a133cbe161240d947847 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 044f33f8418f954a4e6c67b1eded6bbfd1ff3e86..7c6676cadfda6c42728d7248f2490a8668df213e 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 5f45a39ac9e4b572131992d33d4f08699e2ba8c7..119e5e4937afe4d61ff604c690f8cdbb9ae3a7d3 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 8e129fd29c24b5640d5d5146f869a9b39b3227ef..c5c1df7be4631da52f0d36c633cbc4d4d083827e 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 87ade9bfec3e34a6ee5022cd6a1495d66bf74696..0a2bd7897c2abd28e999f06ead918f1be2261ca6 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 fc6007d7aa892908129170f914b351167315b0ce..c81a92d3a9eda0647c8c92cb6260902ace6f721d 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 a2213bcbed4d1c114ee2876fe36fde866eeb526f..e23ec21462e4054adc0e012acc5b140954e755d7 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 2d24ce66af1dd062fb33248dec5682ccc0e64a35..20034758872ad830741c9770b4825af298b80593 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 dc85f00dd00d9d0428a3e5fd8fb81257d95ea5ab..5d2140af018b651c4d8cd1609a904d5c473713a3 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 63852dd2867a7bce427fbcf4a5c081731e647ea6..d48a88b5c026b93019e6b1277955b476caa0dd43 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 aff8c3d854873ac4f380d52bf360bb27b33d5815..824b0bf47bc4bca2fd5a3bb0a8b6e5dc690b0007 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 08b465062bfaa53bece66847240a46271222793a..7105812b7f80c77ee677ec25cc5987908da20ca6 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 85e7f9dd7a05a59dea9b2cc16d68c3ae4cd35d77..e5476744bbf7559555dc1566be69a5474f07423b 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 2ac42a44c441e71141c2910e0b97793519927879..5062db134c9a1548758938d7451dbe803be898b1 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 f6ee2cd69f8409c0559c90fc20cb51b9600decd0..2d9f6749cf2952272e262c6f5923b881205bfec4 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 bb4b0c0b3f3dc9d4f32c6affd25ca1d82ac1b716..05ff3e6850ca2a955eb32b17b052a5a9f8957964 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 715ff723e0f35fa3983bb84fd9b6227694bcdbd1..6066dcae70158abacb35d00f872f1483a66bf7cf 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 14af5627d51691e7291766c5089ef1b6ffce2f41..254b3ae16bbf27aaac5f397c2f762532d47f8704 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 bbbb355a691796449b3f1e0e6984ef8d199432ea..78e0b2b849f05c04fc1c41487a270079b2d88306 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 ab42bbd5cf555cd2b7ddf0a3c9863c799521a310..7f7c316385807417cb41eed2f81eb74fcd899b0e 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 a29d40977fb21ea1c3b8597340fd9c4b71c05b2a..04c5c97b92712f30e908e239346b2731233917ef 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 cc22e899fbecb9abdc4d70f599af793197cdb1ec..cc98d813ea790f3c20de147c1fe567a07b12b714 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 e4423d0b575f5ad4c9af8e6409a26689d152a91b..e5418314c41e51be31cd900b5ae94a7cb41455e0 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 c8511b4a7e655e9a3377aef4323cdf450351adae..07ccf908760d55db2ecc100feb371a22ed6d7c52 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 7c56a59b1026cdab2c4fc64dc6343df9dc0e9858..5ca49308f7977cbdfe9558d16ec762f20a38a3b6 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 fd4013a91277f8cf1d24a3a31bbc79634e34bbf5..719eaf9a5c613366bd1af049be77b059812fa132 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 315ad6d2a6ccdb2eb1b5499585c0a57691f1617f..c4744763619bd336da2f3d941484bbeca75de80a 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 e14893ed6115348de3343b69122bd646ce4bece2..746ceeff7b082b49b2732ce1307253575c2de676 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 3fc5fc661bb85f14bb57459e893c061b9ce10377..708a11f007d23f15b25d74d58d307cf8d2124eb6 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 961ad76ce408687eeceef79ac54e1c91470967b9..607b28bf35b4468132434548c33b27b7c4f32a9d 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 754d910aabb9db2098aa1afa38f4dac4f3f41501..21d25e1b2098eb2f5af8911e319333248afff4f3 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 25b61f6aa8b23ddb65a9bff5aa38fe500d3c01b9..f6a863bde727d64240d145246c55216201876372 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 ef59254ac774579250be1e24a9d0d2fe1711ce1b..56ed2625d0ee26a79f094d29037d8349bb049798 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 b7cabd6c7afd1cee0de356c438b5ccf8c60f02f8..43595f7a0f068f1cad975c57f89c2a043d66f0dd 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 eb19d6894cfb5e70991f7477dfa88e0a5f133ecc..fcea3dd21a58bd28c64ad7d294632a867c594e32 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 c80f253d66f1b62b9620234c7dafba9acadca486..5dc32c01eed9f64fcbf9007344b68638d3374ccf 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 d3f16547aef40ee30911400f306966e811b3f2a9..63812a242eeb7389d6036f64cf6f5fda4d794984 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 2c382d62a0a219e91e9161c472cde218ef0bd8e8..162cd1623ff82da365447729ac55f57668b0d724 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 37c16085cf66acade6867688b7602d53a43a8656..a10a01d223c4aab01c704cd1aea117c34157e47c 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 45d49f3f27a8915a4c09eb293827d728bd97b01f..817d5a079157eb07c75dd92de52519fca2a81240 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 5cd004dfa22ab7f2ea9a0f380e7ed138a81dcf15..584728dd7a1705a814705ce3c4f5ff37b979f822 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 a688bb6f79a49dada48882bd383926f20e4f3bed..f99ee906493a677619982f8f7c113a6b2ca24a42 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 c15d34e8bc6e6e5793a3d07e1b3cc36f159ac73e..0090f7211470cf26bb6f836ad85683405150d925 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 09beb6e312da3f6d26c5ea9bbd9d68ca1ce4e226..0145d89c326c4dc39695faabe5844fd21da6d413 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 6992d04d4a9a981776b215d226bc7879900efc62..b362d98371dec3fa0c90e0b427b815f86591c42e 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 d22a34a64755955bed914b6a05a8f539e751e386..85465be9cf5a67f1e1b1a7b7088aba36102ded33 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 9fba2a9aa2a9c23b0567f75fb63831f1760e6331..5b01c1f757196ed099e97b8bf478d96e0d25ef52 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 23d64312416c817039587c02badea639b6b89e66..82e1bb53bf509ae2662eae68037e10a4edf7c8c9 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 16fcd7d2378b51bf6e78603a8d3f1f0e147a5dc5..244ab62feceb7fa45547e7da779f5b716ad2f0c1 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 0000000000000000000000000000000000000000..ef8bf7d83655da895f37cbb0385a1ddf5707045f --- /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 0000000000000000000000000000000000000000..f543afd13dbb651a8d9492e3bd965f33c7a8cbdf --- /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 0000000000000000000000000000000000000000..288da964461e5ac2f3c5f6a5a5df0779e3701ee8 --- /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 0000000000000000000000000000000000000000..79e0916b0840dfee88e8e994454c1125ca959e57 --- /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 0000000000000000000000000000000000000000..4dc4f20d08c51363c7c91ab80635932b67d5464d --- /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 0000000000000000000000000000000000000000..cec67011597f32c8280b9080eabe35b16e6089aa --- /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 0000000000000000000000000000000000000000..ce551a3e8b48057a871ae2942cbc0ec2f09e384a --- /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 0000000000000000000000000000000000000000..dec64fd9b6808850acef3321e2fd01bbac6b4d6f --- /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 0000000000000000000000000000000000000000..12d3c385f1f04cbcc41d378e293fe8f0ea9319ac --- /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 0000000000000000000000000000000000000000..fd92a336123d1be2b81d87ecf2f092508f831b51 --- /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 0000000000000000000000000000000000000000..c774f4b383118a2c9f7452d7f1d3c1d0df18f4a2 --- /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 0000000000000000000000000000000000000000..1465299409b1e3f53dcc47af4e92e1a676144325 --- /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 0000000000000000000000000000000000000000..c66d27f29fb32eaceb7c039d15751bf8a4c09cbb --- /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 0000000000000000000000000000000000000000..b4820ce2308538ec470a2231d4e50fadf7a87e9d --- /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 0000000000000000000000000000000000000000..2d965d370eab581afadc0bbe7853bc11a3315e34 --- /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 0000000000000000000000000000000000000000..4258a24cd50d606654e58ceeb1c5930942a5193b --- /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 0000000000000000000000000000000000000000..cfc5696bc6227b12eb867d96400b9c988bd06c49 --- /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 0000000000000000000000000000000000000000..76995b11c75c8244bdbebefaff7ac5088bf1ea66 --- /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 0000000000000000000000000000000000000000..1596ffd4723554cd69288742e6dca6a154b4201f --- /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 0000000000000000000000000000000000000000..19f803ff860bfab639a6ad89c9434d313f1a57e5 --- /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 0000000000000000000000000000000000000000..2545883ed0bc8e819718c942f62bc626d26fbab5 --- /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 018c62e2652d44ff0333ca13b1028910d24ca1a3..7fc972598daab208bad2ce1bfc50c01a87557bca 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 6c0c2056bfa42f7ca94a6d78050de2a2c781fda3..5021e2a295af6cc6e67b3fecdc5960cd5e6b4a8e 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 ff945fbe96f460e5b34df1d8d12733aeb649bf04..d3eb18709a6a4aeb0f99b263250041bf6e7568f3 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 80d2dbbc272fc862f15c2bf77d471ccc0ef7fbbb..574c9e2a273ae7682272c513dcabdc59d632664b 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 695e3f2b9f7439546b7b80d8ef992e8a676f7a18..ffa3a42ddfb6b7ad555bbd46e0cbe02c0beed100 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 436dadbaf27f4fb4cd0be285a0a3f3fa04cf09de..25c3465001b231efc91e6d35c72c61cc03891f3e 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 2062c88f54967de549235969a41daca46ce3a479..c435b49602666b96df0f6d3273e8825566e4cb63 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 3aeb17368a920a11425af66d6776a63a042addf6..2fa0f07aff396ce2a694061903d8a00ff53d5a83 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 bc244962fa31827c660cc3d4de5ae449d2036bca..ddea3d5ac7c3067b4578f3dcf2e5d82cc056b845 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 db06ea6f4f0417160324c426551af680319d1e03..074910b9c618352de570cf7f3c6512eea82affb9 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 a201fe3938eeff649020c43905e66a47159a39ef..68550cb9f4a6d39f2bb3aa203283e5dcbf3cc18d 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 3a4653a64e4c9047fa3bf84773a14ded7ae1ba90..9fe4580c22822de059c4a80fd1585acaee0e5eca 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!" }